diff options
author | Simon Rettberg | 2016-07-05 18:00:25 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-07-05 18:00:25 +0200 |
commit | 802ea3fe4785dfbcd302153ca67f368ce08ebe3c (patch) | |
tree | b23f74daf520e11710ddf4b8a280a0084398ab71 /satellit_installer/static_files/rclocal_script.sh | |
parent | [SSUS] Various minor fixes/improvements (diff) | |
download | setup-scripts-802ea3fe4785dfbcd302153ca67f368ce08ebe3c.tar.gz setup-scripts-802ea3fe4785dfbcd302153ca67f368ce08ebe3c.tar.xz setup-scripts-802ea3fe4785dfbcd302153ca67f368ce08ebe3c.zip |
[SSPS] Install slx-admin db via install script
Diffstat (limited to 'satellit_installer/static_files/rclocal_script.sh')
-rw-r--r-- | satellit_installer/static_files/rclocal_script.sh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/satellit_installer/static_files/rclocal_script.sh b/satellit_installer/static_files/rclocal_script.sh index 07a69d3..bfb11a6 100644 --- a/satellit_installer/static_files/rclocal_script.sh +++ b/satellit_installer/static_files/rclocal_script.sh @@ -67,10 +67,8 @@ chmod 600 /root/mysqlpass echo -n "Konfigurationsdateien werden aktualisiert..." >> /root/init.log # sat mysql pass -# Patch dmsd, vmchooser-query-script -patchfiles "%MYSQL_SAT_PASS%" "$MYSQL_SAT_NEW" "$DMSDDIR/config.properties" "/srv/openslx/www/vmchooser/list.php" -# Pureftpd -patchfiles 'MYSQLPassword.*$' "MYSQLPassword $MYSQL_SAT_NEW" "/etc/pure-ftpd/db/mysql.conf" +# Patch dmsd +patchfiles "%MYSQL_SAT_PASS%" "$MYSQL_SAT_NEW" "$DMSDDIR/config.properties" # openslx mysql pass # Patching openslx-mysql-userpass into slx-admin config: @@ -81,14 +79,20 @@ patchfiles 'password *=.*$' "password = $MYSQL_SYSMAINT_NEW" "/etc/mys echo " ok." >> /root/init.log -echo -n "Dienste werden aktiviert..." >> /root/init.log +echo "Dienste werden aktiviert..." >> /root/init.log # Enable bwLehrpool related services for i in dmsd.service taskmanager.service; do systemctl enable $i [ $? -ne 0 ] && echo "Warnung - konnte systemd-Service $i nicht aktivieren!" >> /root/init.log + systemctl start $i done -echo -n " ok." >> /root/init.log + +# Install slx-admin DB +( + cd "/srv/openslx/www/slx-admin" + sudo -n -u www-data ./install-all >> /root/init.log +) # Write MOTD cat > /etc/motd <<THEREDOC |