Merge lp:~widelands-dev/widelands-website/add_ops into lp:widelands-website
Proposed by
SirVer
Status: | Merged |
---|---|
Merged at revision: | 419 |
Proposed branch: | lp:~widelands-dev/widelands-website/add_ops |
Merge into: | lp:widelands-website |
Diff against target: |
23 lines (+18/-0) 1 file modified
_ops/apt_update.sh (+18/-0) |
To merge this branch: | bzr merge lp:~widelands-dev/widelands-website/add_ops |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
kaputtnik (community) | Approve | ||
Review via email: mp+302269@code.launchpad.net |
Description of the change
Adds the script I regularly run on the server to update everything.
To post a comment you must log in.
I am unsure if this should be a part of the website, because it affects the whole server system. And this is Debian/Ubuntu specific.
If one forgot to run this script and use the regular commands the errors will be shown again. So maybe a global alias would do the trick? Something like:
alias update_server='sudo /path/to/ apt_update. sh'
Maybe it is possible to overwrite the 'apt-get update' command with an alias? So if one writes 'sudo apt-get update' in the console the script is executed (maybe prints an explanation whats going on). But i don't know if this is possible (didn't found an example)
Why not create a cron job for this?
Maintenance site: sites-available /wl.widelands. org to provide a maintenance site, but the provided solution (comment/uncomment pieces of code) isn't applicable for doing this in a script. I have searched around for this and found mostly solutions were nginx provide a maintenance site when a specific file is found. This seems to me a better solution (just move a file/create a symlink) to a specific place where nginx find it), but i am afraid to play with the nginx configuration (have also work enough with other stuff ;) ).
janus has changed the code in /etc/nginx/
The maintenance site is stored in /var/www/ www.widelands. org/htdocs/ index.html
The _ops directory is good though.