Skip to content

Commit

Permalink
Update dsiprouter.sh
Browse files Browse the repository at this point in the history
Removed the creation of swap and removal of swap from the installer until we review the effects on different operating systems.
  • Loading branch information
mackhendricks authored Aug 13, 2024
1 parent 8bc1385 commit 59a7452
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dsiprouter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3650,7 +3650,7 @@ function createSwapFile() {
(
grep -vF "$SWAP_FILE" /etc/fstab
echo "${SWAP_FILE} none swap sw 0 0"
) >/etc/fstab &&
) >>/etc/fstab &&
printdbg 'swapfile created successfully'
fi

Expand Down Expand Up @@ -3839,7 +3839,7 @@ function processCMD() {
case $ARG in
install)
# always add official repo's, set platform, and create init service
RUN_COMMANDS+=(configureSystemRepos setCloudPlatform createInitService createSwapFile installDsiprouterCli)
RUN_COMMANDS+=(configureSystemRepos setCloudPlatform createInitService installDsiprouterCli)
shift

local NEW_ROOT_DB_USER="" NEW_ROOT_DB_PASS="" NEW_ROOT_DB_NAME="" DB_CONN_URI="" TMP_ARG=""
Expand Down Expand Up @@ -4092,7 +4092,7 @@ function processCMD() {
# same goes for official repo configs, we only remove if all dsiprouter configs are being removed
-all|--all)
DEFAULT_SERVICES=0
RUN_COMMANDS+=(uninstallRTPEngine uninstallDsiprouter uninstallNginx uninstallKamailio uninstallMysql uninstallDnsmasq uninstallSipsak uninstallDsiprouterCli removeSwapFile removeInitService removeDsipSystemConfig)
RUN_COMMANDS+=(uninstallRTPEngine uninstallDsiprouter uninstallNginx uninstallKamailio uninstallMysql uninstallDnsmasq uninstallSipsak uninstallDsiprouterCli removeInitService removeDsipSystemConfig)
shift
;;
*) # fail on unknown option
Expand Down

0 comments on commit 59a7452

Please sign in to comment.