summaryrefslogtreecommitdiffstats
path: root/satellit_installer/includes/10-script_dropper.inc
diff options
context:
space:
mode:
authorroot2014-07-25 15:58:18 +0200
committerroot2014-07-25 15:58:18 +0200
commite2549b520e67b1ea2740780d1b40517c8b35dd56 (patch)
tree8f14abfc7686fccf97de771019014a106ad4fcc4 /satellit_installer/includes/10-script_dropper.inc
parent[SSPS] Some more slx-admin path entries (diff)
downloadsetup-scripts-e2549b520e67b1ea2740780d1b40517c8b35dd56.tar.gz
setup-scripts-e2549b520e67b1ea2740780d1b40517c8b35dd56.tar.xz
setup-scripts-e2549b520e67b1ea2740780d1b40517c8b35dd56.zip
[SSPS] script dropper include: Reflected chandes in slx-admin/config.php
Diffstat (limited to 'satellit_installer/includes/10-script_dropper.inc')
-rw-r--r--satellit_installer/includes/10-script_dropper.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/satellit_installer/includes/10-script_dropper.inc b/satellit_installer/includes/10-script_dropper.inc
index 00cea35..1098989 100644
--- a/satellit_installer/includes/10-script_dropper.inc
+++ b/satellit_installer/includes/10-script_dropper.inc
@@ -70,7 +70,8 @@ drop_script() {
sed -i "s/pass=%MYSQL_BWLEHRPOOL_PASS%/pass=\$MYSQL_BWLEHRPOOL_NEW/g" "$INSTALLDIR/Server_Config.ini"
# Patching openslx-mysql-userpass into slx-admin config:
- sed -i "s/%MYSQL_OPENSLX_PASS%/\$MYSQL_OPENSLX_NEW/g" "/srv/openslx/www/slx-admin/config.php"
+ cp -p "$OPENSLXSRVDIR/www/slx-admin/config.php.example" "$OPENSLXSRVDIR/www/slx-admin/config.php"
+ sed -i "s/%MYSQL_OPENSLX_PASS%/\$MYSQL_OPENSLX_NEW/g" "$OPENSLXSRVDIR/www/slx-admin/config.php"
# Patching bwLehrpool-mysql-userpass into pureftpd config:
sed -i "s/MYSQLPassword.*$/MYSQLPassword \$MYSQL_BWLEHRPOOL_NEW/g" /etc/pure-ftpd/db/mysql.conf