summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSimon Rettberg2016-07-05 13:35:58 +0200
committerSimon Rettberg2016-07-05 13:35:58 +0200
commit2be8dc185a9c8f0b6d913e47f5255098cbe1f4f0 (patch)
tree117b0ec6e541bf54dd1b5b66797dfa969b2c9b9e /scripts
parent[ldap/ad] Support home directory remapping options (diff)
downloadtmlite-bwlp-2be8dc185a9c8f0b6d913e47f5255098cbe1f4f0.tar.gz
tmlite-bwlp-2be8dc185a9c8f0b6d913e47f5255098cbe1f4f0.tar.xz
tmlite-bwlp-2be8dc185a9c8f0b6d913e47f5255098cbe1f4f0.zip
[scripts] system-restore: Use new install-all script for DB update
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/system-restore5
1 files changed, 4 insertions, 1 deletions
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=$?