summaryrefslogtreecommitdiffstats
path: root/satellit_installer/static_files/rclocal_script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'satellit_installer/static_files/rclocal_script.sh')
-rw-r--r--satellit_installer/static_files/rclocal_script.sh8
1 files changed, 0 insertions, 8 deletions
diff --git a/satellit_installer/static_files/rclocal_script.sh b/satellit_installer/static_files/rclocal_script.sh
index 91bf30d..2fc4235 100644
--- a/satellit_installer/static_files/rclocal_script.sh
+++ b/satellit_installer/static_files/rclocal_script.sh
@@ -25,8 +25,6 @@ echo "$(basename $0) gestartet: $(date "+%Y-%m-%d %H:%m:%S")" >> /root/init.log
source "/root/installer/config" || { echo "Fehler beim Sourcen der firstrun-config." >> /root/init.log; exit 1; }
-[ -z "$MYSQL_ROOT_PASS" ] && perror "Installationsfehler: WARNUNG: Aktuelles MySQL-root-Passwort nicht bekannt!"
-
generate_password() {
tr -dc _A-Za-z0-9 < /dev/urandom | head -c 16
}
@@ -58,11 +56,6 @@ export LANG=de_DE.UTF-8
echo "Generiere intern genutzte Passwörter (z.B. MySQL-Zugänge) neu ..." >> /root/init.log
umask 0077
-MYSQL_ROOT_NEW=$(generate_password)
-mysqladmin -u root -p"${MYSQL_ROOT_PASS}" password "${MYSQL_ROOT_NEW}" || perror "Neusetzen des root-MySQL-Passworts fehlgeschlagen"
-# Just in case...
-sed -i "s/^MYSQL_ROOT_PASS=.*\$/MYSQL_ROOT_PASS=${MYSQL_ROOT_NEW}/g" "/root/installer/config"
-
MYSQL_SAT_NEW=$(generate_password)
echo "SET PASSWORD FOR 'sat'@'localhost' = PASSWORD('$MYSQL_SAT_NEW');" | mysql -u root -p"${MYSQL_ROOT_NEW}" || perror "Neusetzen des sat-MySQL-Passworts fehlgeschlagen."
@@ -78,7 +71,6 @@ if grep -q debian-sys-maint /etc/mysql/debian.cnf; then
fi
# Store mysql root pass in root's home
-echo "$MYSQL_ROOT_NEW" > /root/mysqlpass
chmod 600 /root/mysqlpass
echo -n "Konfigurationsdateien werden aktualisiert..." >> /root/init.log