Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 2, 2024
1 parent 1be1d80 commit fafa9ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/ansible/launch_apt_upgrade.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Script to run apt upgrade command on servers
# Script to run apt update and upgrade command on servers
#
# To run the script:
# ansible-playbook -K launch_apt_upgrade.yml -i hosts-xxx -e 'target=targethost'
Expand All @@ -12,7 +12,7 @@
become_method: sudo
become_user: root
tasks:
- name: Switch to maintenance mode
- name: Switch instances in maintenance mode
command: /home/admin/wwwroot/dolibarr_sellyoursaas/scripts/make_instances_offline.sh maintenance.php offline
register: command_output

Expand Down
3 changes: 2 additions & 1 deletion scripts/desktop_apt_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export YELLOW='\033[0;33m'


if [ "x$2" == "x" ]; then
echo "***** Execute an apt upgrade on remote servers. This switch all instances in maintenancemode. *****"
echo "***** Launch the command apt update/upgrade on remote servers *****";
echo "Execute an apt update and upgrade on remote servers. On deployment server, this switches all instances in maintenancemode.";
echo "Usage: $0 hostfile [hostgrouporname] (reboot)"
echo " [hostgrouporname] can be 'master', 'deployment', 'web', 'remotebackup', or list separated with comma like 'master,deployment' (default)"
echo "Example: $0 myhostfile master,deployment"
Expand Down

0 comments on commit fafa9ed

Please sign in to comment.