From 2be8dc185a9c8f0b6d913e47f5255098cbe1f4f0 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 5 Jul 2016 13:35:58 +0200 Subject: [scripts] system-restore: Use new install-all script for DB update --- scripts/system-restore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/system-restore b/scripts/system-restore index 21e7d05..bb2967a 100755 --- a/scripts/system-restore +++ b/scripts/system-restore @@ -118,7 +118,10 @@ if [ $RES_OPENSLX -eq 1 ]; then # Force triggering IP detection/setting, which should in turn regenerate ldadp configs and launch ldadp instances if applicable echo "UPDATE openslx.property SET value = 'invalid' WHERE name = 'server-ip' LIMIT 1" | mysql --defaults-extra-file=/etc/mysql/debian.cnf --default-character-set=utf8 # Try to update the db (if required) - curl -s 'http://localhost/slx-admin/api.php?do=update' + ( + cd /srv/openslx/www/slx-admin + ./install-all + ) tar --ignore-failed-read -x -f files.tgz -C / RET=$? -- cgit v1.2.3-55-g7522