|
@@ -30,6 +30,13 @@ sed -i "s/NODE_HOST/$(dig ${HOSTNAME}.${APPNET} +short)/" /etc/web-laboratory/ap
|
|
|
echo "de.javakaffee.web.msm.level = ${DEBUG}" >> /opt/tomcat/conf/logging.properties
|
|
|
echo "net.spy.memcached.level = ${DEBUG}" >> /opt/tomcat/conf/logging.properties
|
|
|
|
|
|
+
|
|
|
+if [[ ! -z $SMB_USERNAME]]; then
|
|
|
+ sed -i "s/auth-enable: false/auth-enable: true/" /etc/web-laboratory/application.conf
|
|
|
+ sed -i "s/username: \"\"/username: \"${SMB_USERNAME}\"/" /etc/web-laboratory/application.conf
|
|
|
+ sed -i "s/password: \"\"/password: \"${SMB_PASSWORD}\"/" /etc/web-laboratory/application.conf
|
|
|
+fi
|
|
|
+
|
|
|
source /etc/init.d/web-laboratory status
|
|
|
|
|
|
exec "$@"
|