This commit is contained in:
jdvcDev 2021-08-02 10:33:53 -06:00
Родитель f1edce7e5b
Коммит b141ca4279
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -23,10 +23,10 @@ echo 'DatabaseConfigType=jndi' >> /var/airsonic.properties
echo 'DatabaseConfigJNDIName=jdbc/airsonicDB' >> /var/airsonic.properties
# write to tomcat9.service
sed -i "s%Environment=MYSQL_SERVER_ADMIN_LOGIN_NAME=%Environment=MYSQL_SERVER_ADMIN_LOGIN_NAME='$MYSQL_ADMIN_USER'%" /etc/systemd/system/tomcat9.service
sed -i "s%Environment=MYSQL_SERVER_ADMIN_PASSWORD=%Environment=MYSQL_SERVER_ADMIN_PASSWORD='$MYSQL_ADMIN_PASS'%" /etc/systemd/system/tomcat9.service
sed -i "s%Environment=MYSQL_DATABASE_NAME=%Environment=MYSQL_DATABASE_NAME='$MYSQL_DBNAME'%" /etc/systemd/system/tomcat9.service
sed -i "s%Environment=MYSQL_SERVER_FULL_NAME=%Environment=MYSQL_SERVER_FULL_NAME'$MYSQL_HOSTNAME'%" /etc/systemd/system/tomcat9.service
sed -i "s%Environment=MYSQL_SERVER_ADMIN_LOGIN_NAME=%Environment=MYSQL_SERVER_ADMIN_LOGIN_NAME=$MYSQL_ADMIN_USER%" /etc/systemd/system/tomcat9.service
sed -i "s%Environment=MYSQL_SERVER_ADMIN_PASSWORD=%Environment=MYSQL_SERVER_ADMIN_PASSWORD=$MYSQL_ADMIN_PASS%" /etc/systemd/system/tomcat9.service
sed -i "s%Environment=MYSQL_DATABASE_NAME=%Environment=MYSQL_DATABASE_NAME=$MYSQL_DBNAME%" /etc/systemd/system/tomcat9.service
sed -i "s%Environment=MYSQL_SERVER_FULL_NAME=%Environment=MYSQL_SERVER_FULL_NAME=$MYSQL_HOSTNAME%" /etc/systemd/system/tomcat9.service
sed -i "s%-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -Dairsonic.home=/var%-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -Dairsonic.home=/var -DMYSQL_SERVER_FULL_NAME='$MYSQL_HOSTNAME' -DMYSQL_DATABASE_NAME='$MYSQL_DBNAME' -DMYSQL_SERVER_ADMIN_LOGIN_NAME='$MYSQL_ADMIN_USER' -DMYSQL_SERVER_ADMIN_PASSWORD='$MYSQL_ADMIN_PASS%" /etc/systemd/system/tomcat9.service