Incorporate changes made for old version 5.2.4.4.

This commit is contained in:
2026-02-10 15:17:09 -05:00
parent 4341c87daa
commit 0265918430
9 changed files with 80 additions and 46 deletions

View File

@@ -8,7 +8,7 @@
APP_NAME="OpenLog"
DEFAULT_DB_NAME="openlog"
APP_VERSION="5.2.4.3"
APP_VERSION="5.2.4.4"
DOC_ROOT="/var/www"
INSTALL_LOC="openlog"
APACHE_CONF_DIR="/etc/apache2/conf-available"
@@ -194,10 +194,13 @@ then
# the db.php file is part of a previous installation
echo "Would you like to upgrade an existing installation or cancel "
echo "and restart the install using a new installation location."
echo -n "[U]pgrade or [C]ancel? [C] :"
echo -n "[U]pgrade or [C]ancel? [U] :"
read upgrade_choice
if [ "$upgrade_choice" = "U" -o "$upgrade_choice" = "u" ] # Upgrade chosen
if [[ $upgrade_choice == "C" || $upgrade_choice == "c" ]] # Cancel chosen
then
echo "Cancelling installation"
abort_exit
else
# proceed with upgrade
mkdir -p backups
operation="upgraded"
@@ -264,9 +267,6 @@ then
echo ""
echo "Setting file ownership . . ."
chown -R $httpd_user_group $install_path
else
echo "Cancelling installation"
abort_exit
fi
else
# This was a mistake. Exit now to avoid clobbering another app.