This commit is contained in:
jdvcDev 2021-07-30 09:49:06 -06:00
Родитель 9a326f9244
Коммит 2cea0adfd2
3 изменённых файлов: 8 добавлений и 8 удалений

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

@ -36,7 +36,7 @@
"value": "mysql-client-core-5.7"
},
"_artifactsLocation": {
"value": "https://raw.githubusercontent.com/microsoft/MTC_APPContainerization/main/Java%20Containerization/scripts/vm/"
"value": "https://raw.githubusercontent.com/Lantern-Cloud-Services/MTC_APPContainerization/jcdev0728/Java%20Containerization/scripts/vm/"
}
}
}

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

@ -35,7 +35,7 @@ chmod 777 $MEDIA_BASEDIR/music
# setup env vars
echo "Setting env vars"
echo "CATALINA_OPTS='-Xms512M -Xmx1024M -server -XX:+UseParallelGC'" >> /opt/tomcat9/bin/setenv.sh
echo "JAVA_OPTS='-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -Dairsonic.home=/datadrive/airsonic'" >> /opt/tomcat9/bin/setenv.sh
echo "JAVA_OPTS='-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -Dairsonic.home=/var/airsonic'" >> /opt/tomcat9/bin/setenv.sh
echo "Setting env vars complete"
# Start/Stop tomcat to generate airsonic properties file

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

@ -18,10 +18,10 @@ MYSQL_DBNAME=$11
mkdir $LOG_HOME
sh java-tomcat-install.sh $JAVA_PACKAGE $TOMCAT_PACKAGE >> $LOG_HOME/java-tomcat-install.log
sh airsonic-install.sh $AIRSONIC_PACKAGE >> $LOG_HOME/airsonic-install.log
sh mysql-install.sh $MYSQL_CLIENT_PACKAGE $MYSQL_ADMIN_USER $MYSQL_SERVER_HOST $MYSQL_ADMIN_PASS >> $LOG_HOME/mysql-install.log
sh mysql-bind.sh $TOMCAT_CONTEXT $MYSQL_DRIVER $MYSQL_ADMIN_USER $MYSQL_ADMIN_PASS $MYSQL_DBNAME $MYSQL_SERVER_HOST >> $LOG_HOME/mysql-bind.log
#sh airsonic-install.sh $AIRSONIC_PACKAGE >> $LOG_HOME/airsonic-install.log
#sh mysql-install.sh $MYSQL_CLIENT_PACKAGE $MYSQL_ADMIN_USER $MYSQL_SERVER_HOST $MYSQL_ADMIN_PASS >> $LOG_HOME/mysql-install.log
#sh mysql-bind.sh $TOMCAT_CONTEXT $MYSQL_DRIVER $MYSQL_ADMIN_USER $MYSQL_ADMIN_PASS $MYSQL_DBNAME $MYSQL_SERVER_HOST >> $LOG_HOME/mysql-bind.log
echo "Starting tomcat"
/opt/tomcat9/bin/startup.sh
sleep 30
#echo "Starting tomcat"
#/opt/tomcat9/bin/startup.sh
#sleep 30