Skip to content

Commit

Permalink
Merge pull request #2 from linuxserver/persist-media
Browse files Browse the repository at this point in the history
persist the media folder in /config
  • Loading branch information
alex-phillips authored Sep 21, 2020
2 parents eeee074 + 66d4ebe commit 4c7a531
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions root/etc/cont-init.d/50-config
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ if [ ! -f "/config/configuration.py" ]; then
done
fi

[[ ! -e "/config/media" ]] && \
mv /app/netbox/netbox/media /config/media

rm -rf /app/netbox/netbox/media
ln -sf /config/media /app/netbox/netbox/media

ln -sf /config/configuration.py /app/netbox/netbox/netbox/configuration.py

mv /defaults/uwsgi.ini /app/netbox/netbox/uwsgi.ini > /dev/null 2>&1
Expand Down

0 comments on commit 4c7a531

Please sign in to comment.