Changed CMD, clear config lock on first (re)start

This commit is contained in:
Winston Astrachan 2019-03-16 20:36:51 -04:00
parent eec302077b
commit 289422714a
2 changed files with 4 additions and 1 deletions

View File

@ -30,4 +30,4 @@ RUN \
rm -rf /flexget /flexget.tar.gz
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["su", "-p", "-s", "/bin/sh", "flexget", "-c", "/usr/local/bin/flexget -c /config/config.yml --loglevel verbose execute"]
CMD ["su", "-p", "-s", "/bin/sh", "flexget", "-c", "/usr/local/bin/flexget -c /config/config.yml --loglevel verbose daemon start --autoreload-config"]

View File

@ -18,6 +18,9 @@ if [ ! -f "/config/config.yml" ]; then
cp /defaults/config.yml /config/config.yml
fi
# Clear "config lock", if it exists
rm -f /config/.config-lock
# Set UID/GID of user
sed -i "s/^flexget\:x\:100\:101/flexget\:x\:$PUID\:$PGID/" /etc/passwd
sed -i "s/^flexget\:x\:101/flexget\:x\:$PGID/" /etc/group