summaryrefslogtreecommitdiffstats
path: root/satellit_installer/includes
diff options
context:
space:
mode:
authorSimon Rettberg2020-02-24 12:32:36 +0100
committerSimon Rettberg2020-02-24 12:32:36 +0100
commitdc10c58e6a5f3a48e38c62098d5e7abf4eafa948 (patch)
treed73b69630f1586e7e73136779761c1e1f16517a0 /satellit_installer/includes
parent[SSUS] Make chown on stage4 non-fatal (diff)
downloadsetup-scripts-dc10c58e6a5f3a48e38c62098d5e7abf4eafa948.tar.gz
setup-scripts-dc10c58e6a5f3a48e38c62098d5e7abf4eafa948.tar.xz
setup-scripts-dc10c58e6a5f3a48e38c62098d5e7abf4eafa948.zip
[SSPS/SSUS] Copy slxadmin-init script for later use
Diffstat (limited to 'satellit_installer/includes')
-rw-r--r--satellit_installer/includes/90-patch_slxadmin.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/satellit_installer/includes/90-patch_slxadmin.inc b/satellit_installer/includes/90-patch_slxadmin.inc
index d6d6e88..f254ae7 100644
--- a/satellit_installer/includes/90-patch_slxadmin.inc
+++ b/satellit_installer/includes/90-patch_slxadmin.inc
@@ -41,8 +41,11 @@ install_slxadmin_db () {
echo "# Installing slx-admin database"
sudo -n -u www-data ./install-all || perror "Could not install slx-admin database"
cd - 1>/dev/null
- # Fill with data we need
- php "${BASEDIR}/static_files/slxadmin-init/slxadmin-init.php" || perror "Filling tables with required data failed"
+ # Copy init script for later use (restoring backup)
+ mkdir -p "/opt/openslx/restore.d"
+ cp -a "${BASEDIR}/static_files/slxadmin-init" "/opt/openslx/restore.d/" || perror "Could not copy slxadmin-init"
+ # Fill database with data we need
+ /opt/openslx/restore.d/slxadmin-init/init.sh || perror "Filling tables with required data failed"
# Reset with original template for firstboot script
copy_slxadmin_config
# appending a variable with satellite server build date/time to slx-admin config: