From 2ce010150a2bdef1ccdac9d5394eac5a1b814604 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Sun, 14 Jul 2024 09:52:31 +0200 Subject: [PATCH] upgrade upgrade.sh with selection of user --- upgrade/upgrade.sh | 52 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/upgrade/upgrade.sh b/upgrade/upgrade.sh index 944827c1..1ab24710 100755 --- a/upgrade/upgrade.sh +++ b/upgrade/upgrade.sh @@ -1,2 +1,52 @@ #!/bin/bash -sudo -u www-data php data/upgrade.php "$@" + +echo_user() { + echo + echo "--------------- Starting with user \"$_user\" ---------------" +} + +while : +do + clear + echo "--------------- OpenXE manual upgrade ---------------" + echo -e "Choose user:" + echo -e "1) autodect user " + echo -e "2) use current user " + echo -e "3) read username from \"upgrade.user\" file" + echo -e "4) enter username " + echo "" + echo -e "0) Exit" + read -p "Choose an option: " main