Skip to content
Snippets Groups Projects
Unverified Commit 2061e0dd authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #11164 from BrentBaccala/preserve-bbb-web-settings

preserve bbbWebAPI and sharedSecret over upgrades
parents 39759c7a 434b64ed
No related branches found
No related tags found
No related merge requests found
if [ -f /tmp/application.conf ]; then
for KEY in bbbWebAPI sharedSecret; do
VALUE=$(grep $KEY /tmp/application.conf | sed 's/[^=]*=//')
if [ ! -z "$VALUE" ]; then
sed -i "/$KEY/s|=.*|=$VALUE|" /usr/share/bbb-apps-akka/conf/application.conf
fi
done
fi
case "$1" in
install|upgrade|1|2)
rm -f /tmp/application.conf
if [ -f /usr/share/bbb-apps-akka/conf/application.conf ]; then
cp /usr/share/bbb-apps-akka/conf/application.conf /tmp/application.conf
fi
;;
esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment