Skip to content

Commit 5ce8c86

Browse files
committed
Rename script
1 parent d6383e3 commit 5ce8c86

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

backoffice/deployment_servers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@
548548
print $form->textwithpicto($langs->trans("StartStopAgent"), $langs->trans("CommandToManageRemoteDeploymentAgent").':<br><br>'.$commandstartstop, 1, 'help', '', 0, 3, 'startstop'.$key).'<br>';
549549
print '</td>';
550550
print '<td class="small">';
551-
$commandstartstop = 'sudo ' . getDolGlobalString('DOLICLOUD_SCRIPTS_PATH').'/make_instances_offline.sh ' . getDolGlobalString('SELLYOURSAAS_ACCOUNT_URL').'/offline.php test|offline|online';
551+
$commandstartstop = 'sudo ' . getDolGlobalString('DOLICLOUD_SCRIPTS_PATH').'/make_instances_offlineonline.sh ' . getDolGlobalString('SELLYOURSAAS_ACCOUNT_URL').'/offline.php test|offline|online';
552552
print $form->textwithpicto($langs->trans("OnlineOffline"), $langs->trans("CommandToPutInstancesOnOffline").':<br><br>'.$commandstartstop, 1, 'help', '', 0, 3, 'onoff'.$key).'<br>';
553553
print '</td>';
554554

@@ -604,7 +604,7 @@
604604
print '<tr class="oddeven"><td>';
605605
print $langs->trans("CommandToPutInstancesOnOffline").'<br>';
606606
print '<textarea class="flat inputsearch centpercent" type="text" name="SELLYOURSAAS_ANNOUNCE">';
607-
print 'sudo '.$conf->global->DOLICLOUD_SCRIPTS_PATH.'/make_instances_offline.sh '.$conf->global->SELLYOURSAAS_ACCOUNT_URL.'/offline.php test|offline|online';
607+
print 'sudo '.$conf->global->DOLICLOUD_SCRIPTS_PATH.'/make_instances_offlineonline.sh offline.php test|offline|online';
608608
print '</textarea>';
609609
print '<a class="button" href="'.$_SERVER["PHP_SELF"].'?action=makeoffline&token='.newToken().'">'.$langs->trans("PutAllInstancesOffLine").'</a>';
610610
print ' &nbsp; - &nbsp; ';

deploymentserver_list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@
874874
$html .= '<br>';
875875
$html .= $langs->trans("CommandToPutInstancesOnOffline").' <span class="opacitymedium">(to run from a deployment server)</span>:<br>';
876876
$html .= '<div class="urllink"><input type="text" class="quatrevingtpercent" value="';
877-
$html .= 'sudo '.getDolGlobalString('DOLICLOUD_SCRIPTS_PATH').'/make_instances_offline.sh offline.php test|offline|online';
877+
$html .= 'sudo '.getDolGlobalString('DOLICLOUD_SCRIPTS_PATH').'/make_instances_offlineonline.sh offline.php test|offline|online';
878878
$html .= '">';
879879
$html .= '</div>';
880880

scripts/ansible/launch_apt_upgrade.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
become_user: root
1414
tasks:
1515
- name: Switch instances in maintenance mode
16-
command: /home/admin/wwwroot/dolibarr_sellyoursaas/scripts/make_instances_offline.sh maintenance.php offline
16+
command: /home/admin/wwwroot/dolibarr_sellyoursaas/scripts/make_instances_offlineonline.sh maintenance.php offline
1717
register: command_output
1818

1919
- debug:
@@ -35,7 +35,7 @@
3535
var: command_output.stdout_lines
3636

3737
- name: Restore the production mode
38-
command: /home/admin/wwwroot/dolibarr_sellyoursaas/scripts/make_instances_offline.sh maintenance.php online
38+
command: /home/admin/wwwroot/dolibarr_sellyoursaas/scripts/make_instances_offlineonline.sh maintenance.php online
3939
register: command_output
4040

4141
- debug:
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
22
#---------------------------------------------------------
33
# Script to make all instances offline or back online.
4-
# Virtual hosts redirect to another URL.
4+
# When switching offline: the directory of virtual hosts will point to the direcotry with virtual hosts for offline answer.
5+
# When switching online: the directory of virtual hosts is restore to the directory with production virtual hosts.
56
#---------------------------------------------------------
67

78
source /etc/lsb-release

0 commit comments

Comments
 (0)