Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to automate the update process more #859

Merged
merged 1 commit into from
Feb 8, 2021

Conversation

poll-busily
Copy link
Contributor

We recommend creating an update script in the install notes so lets provide one that works for the environment we refer to there (Debian/Ubuntu). It can be modified to suit the environment and there are comments to explain what the various options do so that an admin can set it up easily.

This script automates both the git pull and setting of permissions on writable directories after the update. It has a bit of error handling for safety and allows the admin to choose whether to update to the tip of master (current behaviour) or to the latest tag.

We recommend creating an update script in the install notes so why not provide one that works for the environment we refer to there (Debian/Ubuntu)? This script automates the git pull and setting of permissions on writable directories. It has a bit of error handling for safety and allows the admin to choose whether to update to the tip of master (current behaviour) or to the latest tag.
@poll-busily
Copy link
Contributor Author

Sample output:

root@cloudlog-vm:/var/www/html# ./update_cloudlog.sh 
Cloudlog update started
-----------------------
Using /var/www/html as working directory
Fetching changes from remote...
Fetched latest changes successfully
Fast-forwarding to HEAD (bleeding-edge)...
Updating 0b84d4c0..bccfa676
Fast-forward
 .gitignore                                    |  1 +
 application/controllers/Lotw.php              | 22 ++++++++++++++++------
 application/controllers/Qso.php               |  1 +
 application/models/LotwCert.php               |  4 +++-
 application/views/interface_assets/footer.php |  5 +++++
 application/views/lotw_views/upload_cert.php  | 13 +++++++++++++
 assets/js/sections/contesting.js              | 36 ++++++++++++++++++++++++++++++++++++
 7 files changed, 75 insertions(+), 7 deletions(-)
Fast-forward finished successfully.
Setting ownership as root:www-data on application/config
Setting ownership as root:www-data on assets/qslcard
Setting ownership as root:www-data on backup
Setting ownership as root:www-data on updates
Setting ownership as root:www-data on uploads
Cloudlog update finished

@magicbug
Copy link
Owner

magicbug commented Feb 8, 2021

Looks good Paul and gives people the option of less hassle of setting things up

@magicbug magicbug merged commit 51610be into magicbug:master Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants