Skip to content
Snippets Groups Projects
Commit 97a1193f authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

"refreshAuth"

parent 70dc270b
No related branches found
No related tags found
No related merge requests found
#! /bin/bash
DEST_USER=nobody
if [ $(getent group nobody) ]; then
DEST_GROUP=nobody
else
DEST_GROUP=nogroup
fi
AUTH_FILE='/srv/www/data/webapps/js/vl-auth.js'
source /etc/environment
#echo "$CAL_USR"
#echo "$CAL_PWD"
echo "Update: ${AUTH_FILE}"
sed -i "s/couchdb_usr:'.*'/couchdb_usr:'${CAL_USR}'/" ${AUTH_FILE}
sed -i "s/couchdb_pw:'.*'/couchdb_pw:'${CAL_PWD}'/" ${AUTH_FILE}
chown ${DEST_USER}:${DEST_GROUP} ${AUTH_FILE}
exit
......@@ -24,6 +24,9 @@ curl -s -o - ${GITLAB_URL} | tar -xzf - --strip-components=1
chown -R ${DEST_USER}:${DEST_GROUP} ./
# In Datei "/srv/www/data/webapps/js/vl-auth.js" user/passwd aktualisieren:
./refreshAuth
systemctl daemon-reload
systemctl restart ${PROJECT}.service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment