Skip to content

Commit

Permalink
Implement swap file creation before installing the product
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-antonyuk committed Dec 12, 2024
1 parent b9e5997 commit 8ddcb71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions install/OneClickInstall/install-Debian/install-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ if [ "$DOCUMENT_SERVER_INSTALLED" = "false" ]; then
apt-get install -yq ${ds_pkg_name}
fi

if [ "$MAKESWAP" == "true" ]; then
make_swap
fi

if [ "$PRODUCT_INSTALLED" = "false" ]; then
echo ${product} ${product}/db-pwd select $MYSQL_SERVER_PASS | sudo debconf-set-selections
echo ${product} ${product}/db-user select $MYSQL_SERVER_USER | sudo debconf-set-selections
Expand All @@ -74,10 +78,6 @@ elif [ "$UPDATE" = "true" ] && [ "$PRODUCT_INSTALLED" = "true" ]; then
fi
fi

if [ "$MAKESWAP" == "true" ]; then
make_swap
fi

echo ""
echo "$RES_INSTALL_SUCCESS"
echo "$RES_QUESTIONS"
Expand Down
8 changes: 4 additions & 4 deletions install/OneClickInstall/install-RedHat/install-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ expect << EOF
EOF
fi

if [ "$MAKESWAP" == "true" ]; then
make_swap
fi

{ ${package_manager} check-update ${product}; PRODUCT_CHECK_UPDATE=$?; } || true
if [ "$PRODUCT_INSTALLED" = "false" ]; then
${package_manager} install -y ${product} --best --allowerasing $TESTING_REPO
Expand All @@ -155,10 +159,6 @@ elif [[ "${PRODUCT_CHECK_UPDATE}" -eq "${UPDATE_AVAILABLE_CODE}" || "${RECONFIGU
-mysqlp $(grep -oP 'Password=\K[^;]*' <<< "$CONNECTION_STRING")
fi

if [ "$MAKESWAP" == "true" ]; then
make_swap
fi

echo ""
echo "$RES_INSTALL_SUCCESS"
echo "$RES_QUESTIONS"
Expand Down

0 comments on commit 8ddcb71

Please sign in to comment.