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: janus has changed the code in /etc/nginx/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 ;) ). The maintenance site is stored in /var/www/www.widelands.org/htdocs/index.html The _ops directory is good though. -- https://code.launchpad.net/~widelands-dev/widelands-website/add_ops/+merge/302269 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands-website/add_ops into lp:widelands-website. _______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp

