Skip to content

Commit

Permalink
Config file was not being copied on first start
Browse files Browse the repository at this point in the history
  • Loading branch information
activ committed May 24, 2016
1 parent 71d860e commit de12cdb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
10 changes: 0 additions & 10 deletions apps/nobody/flexget.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
#!/bin/bash

# Check if config.yml exists. If not, copy in
if [ -f /config/config.yml ]; then
echo "Using existing config file."
else
echo "Creating config.yml from template."
cp /root/config.yml /config/config.yml
chown nobody:users /config/config.yml
chmod +x /config/config.yml
fi

echo "$(date "+%d.%m.%Y %T") : Starting DAEMON"
flexget -c /config/config.yml web passwd $WEB_PASSWD
flexget -c /config/config.yml daemon start
9 changes: 9 additions & 0 deletions setup/root/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ else
echo "[info] Permissions already set for /config"

fi
# Check if config.yml exists. If not, copy in
if [ -f /config/config.yml ]; then
echo "Using existing config file."
else
echo "Creating config.yml from template."
cp /root/config.yml /config/config.yml
chown nobody:users /config/config.yml
chmod +x /config/config.yml
fi

# set permissions inside container
chown -R "${PUID}":"${PGID}" /config
Expand Down

0 comments on commit de12cdb

Please sign in to comment.