diff options
author | Christian Rößler | 2019-10-29 16:02:34 +0100 |
---|---|---|
committer | Christian Rößler | 2019-10-29 16:02:34 +0100 |
commit | 6707db40319fb8c10ce8cc881a91d3320103c88d (patch) | |
tree | f363fb9120aa37a2e5ad2de86c6decd8cbc67265 /satellit_installer/static_files/rclocal_script.sh | |
parent | [SSPS] Patch ipxe config to meet our requirements (diff) | |
download | setup-scripts-6707db40319fb8c10ce8cc881a91d3320103c88d.tar.gz setup-scripts-6707db40319fb8c10ce8cc881a91d3320103c88d.tar.xz setup-scripts-6707db40319fb8c10ce8cc881a91d3320103c88d.zip |
[SSPS] mysql has no root passwd anymore, pump not avaliable anymore
Diffstat (limited to 'satellit_installer/static_files/rclocal_script.sh')
-rw-r--r-- | satellit_installer/static_files/rclocal_script.sh | 8 |
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 |