Skip to content

Commit

Permalink
Create a data folder with the correct permissions if the user didnt m…
Browse files Browse the repository at this point in the history
…ount its own data folder
  • Loading branch information
maxime1907 committed Nov 16, 2021
1 parent 117fd7d commit 1ca6b66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions root/etc/cont-init.d/50-config
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ rm -rf "$i"
ln -s /config/www/"$(basename "$i")" "$i"
done

# create data folder
mkdir -p /data
chown -R abc:abc \
/data

# symlink data folder
mv /var/www/localhost/filegator/repository /var/www/localhost/filegator/_repository
ln -s /data /var/www/localhost/filegator/repository
Expand Down

0 comments on commit 1ca6b66

Please sign in to comment.