Skip to content

Commit

Permalink
Update 50-config
Browse files Browse the repository at this point in the history
  • Loading branch information
xthursdayx authored Jun 27, 2022
1 parent 3f6c9f0 commit e542fbc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions light/root/etc/cont-init.d/50-config
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@ mkdir -p /config/.config/gPodder
[[ ! -f /config/.config/gPodder/server-config.txt ]] && \
echo "port 3000" > /config/.config/gPodder/server-config.txt

sed -i 's|"password":"abc",|"password":"kjhbouygiuvhgvghv",|' /gclient/app.js
sed -i "s#process.env.PASSWORD || 'abc';#process.env.PASSWORD || 'kjhbouygiuvhgvghv';#" /gclient/maketoken.js

if [ -n "$PASSWORD" ]; then
echo "abc:${PASSWORD}" | chpasswd
echo "Setting password from environment variable."
else
echo "abc:kjhbouygiuvhgvghv" | chpasswd
echo "No password is set for the interface."
echo "**** Setting password from environment variable. ****"
else
echo "**** No auth enabled. To enable auth, you can set the PASSWORD var in docker arguments. ****"
fi

# permissions
Expand Down

0 comments on commit e542fbc

Please sign in to comment.