diff options
author | Simon Rettberg | 2014-10-13 18:01:05 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-10-13 18:01:05 +0200 |
commit | 11ffd1bef2fc40a861b18626cfd502b762380faa (patch) | |
tree | 0dd1c8cfc13a8e325a4facb7b8409d7a170787ea /satellit_installer/includes/10-script_dropper.inc | |
parent | Add --updateaddress (diff) | |
download | setup-scripts-11ffd1bef2fc40a861b18626cfd502b762380faa.tar.gz setup-scripts-11ffd1bef2fc40a861b18626cfd502b762380faa.tar.xz setup-scripts-11ffd1bef2fc40a861b18626cfd502b762380faa.zip |
Added running flag to dmsd and syncdaemon launchers, added inittab entry for syncdaemon
Diffstat (limited to 'satellit_installer/includes/10-script_dropper.inc')
-rw-r--r-- | satellit_installer/includes/10-script_dropper.inc | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/satellit_installer/includes/10-script_dropper.inc b/satellit_installer/includes/10-script_dropper.inc index 494346f..9c0c0c4 100644 --- a/satellit_installer/includes/10-script_dropper.inc +++ b/satellit_installer/includes/10-script_dropper.inc @@ -72,7 +72,13 @@ drop_script() { echo "...ok." # Patching bwLehrpool-mysql-userpass into bwSuite Server config: - sed -i "s/pass=%MYSQL_BWLEHRPOOL_PASS%/pass=\$MYSQL_BWLEHRPOOL_NEW/g" "$INSTALLDIR/Server_Config.ini" + sed -i "s/%MYSQL_BWLEHRPOOL_PASS%/\$MYSQL_BWLEHRPOOL_NEW/g" "$INSTALLDIR/Server_Config.ini" + + # Patching bwLehrpool-mysql-userpass into pureftpd config: + sed -i "s/MYSQLPassword.*$/MYSQLPassword \$MYSQL_BWLEHRPOOL_NEW/g" /etc/pure-ftpd/db/mysql.conf + + # Patching bwLehrpool-mysql-userpass into satellite-daemon config: + sed -i "s/%MYSQL_BWLEHRPOOL_PASS%/\$MYSQL_BWLEHRPOOL_NEW/g" /opt/syncdaemon/config/mysql.properties # Patching openslx-mysql-userpass into slx-admin config: sed -i "s/%MYSQL_OPENSLX_PASS%/\$MYSQL_OPENSLX_NEW/g" "$OPENSLXSRVDIR/www/slx-admin/config.php" @@ -81,10 +87,7 @@ drop_script() { sed -i "s/password = .*/password = \$MYSQL_SYSMAINT_NEW/g" "/etc/mysql/debian.cnf" # appending a variable with satellite server build date/time to slx-admin config: - echo "define('CONFIG_FOOTER', '(c) 2019 Heinz "$(date "+%Y-%m-%d %H:%m:%S")"');" >> "$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 + echo "define('CONFIG_FOOTER', '$(date "+%Y-%m-%d %H:%m:%S")');" >> "$OPENSLXSRVDIR/www/slx-admin/config.php" # inittab-entry dmsd: if [ \$(grep -c "dmsd.*respawn" /etc/inittab) -gt 0 ]; then @@ -104,6 +107,15 @@ drop_script() { echo "ok." fi + # inittab-entry syncdaemon: + if [ \$(grep -c "synd.*respawn" /etc/inittab) -gt 0 ]; then + echo "syncdaemon inittab entry detected, doing nothing. " + else + echo -n "syncdaemon: patching inittab..." + echo "synd:2345:respawn:/opt/syncdaemon/syncdaemon.sh" >> /etc/inittab + echo "ok." + fi + echo "Last thing to is to delete the script starter from root's .bashrc..." sed -i "/first_run/d" /root/.bashrc echo "...done." |