gluon-core: add gluon-reconfigure script

Not useful by itself except for testing; will be used for multi-domain
support.

[Matthias Schiffer: rename script, use for initial configuration]
This commit is contained in:
lemoer 2017-10-28 17:05:53 +02:00 committed by Matthias Schiffer
parent 0f5d932c4f
commit adcd5b7311
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
2 changed files with 20 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
for script in /lib/gluon/upgrade/*; do
"$script"
done
gluon-reconfigure
exit 0

View File

@ -0,0 +1,17 @@
#!/bin/sh
cd /lib/gluon/upgrade || exit 1
err=0
for script in *; do
echo "Configuring: ${script}"
./"$script" || err=1
done
if [ $err -eq 1 ]; then
echo 'One or more upgrade scripts failed. Please review the above error messages.'
exit 1
fi
exit 0