Skip to content
Snippets Groups Projects
Verified Commit 24b71775 authored by David Beniamine's avatar David Beniamine
Browse files

More modular install

parent 3e5809a7
Branches
No related tags found
No related merge requests found
File moved
export MODS="Base MySQL Nextcloud Dolibarr TetrasBack"
export DOMAIN="dev.tetras-libre.fr"
export SERVER_ADMIN="admin@dev.tetras-libre.fr"
export WEB_SERVER=apache2
......
......@@ -25,8 +25,6 @@ then
fi
. `pwd`/main.env
MODS="initInstall installMySQL installNextcloud installDolibarr installTetrasBack"
for mod in $MODS
do
if [ -f $mod.sh ]
......
......@@ -18,9 +18,20 @@
aptitude update && aptitude upgrade
DIR=`dirname $0`
. $DIR/main.env
. $DIR/installNextcloud.env
. $DIR/upgradeNextcloud.sh
. $DIR/upgradeTetrasBack.sh
. $DIR/upgradeDolibarr.sh
if [ -z "$MODS" ]
then
echo "Please update your main.env to list the installed modules"
exit 1
fi
for mod in $MODS
do
script="$DIR/upgrade$mod.sh"
if [ -f $script ]
then
. $script
fi
done
systemctl restart systemd-logind
checkrestart
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment