mirror of
https://github.com/Sonarr/Sonarr
synced 2025-01-03 05:35:29 +00:00
Fixed data dir ownership in case of dpkg-reconfigure
This commit is contained in:
parent
f2f1039c5e
commit
f57efd30b8
1 changed files with 3 additions and 1 deletions
|
@ -66,9 +66,11 @@ fi
|
||||||
# Create data directory
|
# Create data directory
|
||||||
if [ ! -d "$CONFDIR" ]; then
|
if [ ! -d "$CONFDIR" ]; then
|
||||||
mkdir -p "$CONFDIR"
|
mkdir -p "$CONFDIR"
|
||||||
chown -R $USER:$GROUP "$CONFDIR"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set permissions on data directory (always do this instead only on creation in case user was changed via dpkg-reconfigure)
|
||||||
|
chown -R $USER:$GROUP "$CONFDIR"
|
||||||
|
|
||||||
#BEGIN BUILTIN UPDATER
|
#BEGIN BUILTIN UPDATER
|
||||||
# Apply patch if present
|
# Apply patch if present
|
||||||
if [ "$UPDATER" = "BuiltIn" ] && [ -f /usr/lib/sonarr/bin_patch/release_info ]; then
|
if [ "$UPDATER" = "BuiltIn" ] && [ -f /usr/lib/sonarr/bin_patch/release_info ]; then
|
||||||
|
|
Loading…
Reference in a new issue