Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
🚑 Remove bad grep check
Browse files Browse the repository at this point in the history
  • Loading branch information
timmo001 committed Sep 14, 2019
1 parent e09866c commit fd47050
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions home-panel/rootfs/etc/cont-init.d/secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ if [ "$(grep -i 'API_AUTH_SECRET' /opt/panel/config/default.json)" = 0 ]; then
sed -i -e "s/API_AUTH_SECRET/$(openssl rand -base64 32)/g" /opt/panel/config/default.json
fi

if [ "$(grep -i '../db' /opt/panel/config/default.json)" = 0 ]; then
# Force database to use /data
sed -i "s#../db#/data#g" /opt/panel/config/default.json
fi
# Force database to use /data
sed -i "s#../db#/data#g" /opt/panel/config/default.json

0 comments on commit fd47050

Please sign in to comment.