Update Dockerfile

This commit is contained in:
Alexandre authored and GitHub committed 2021-08-15 08:13:52 +02:00
1 parent 82f3467e9d
commit f000b2d819
1 file changed
+4 -5
+4 -5
View File
@@ -31,9 +31,8 @@ RUN \
&& sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \
# Use subfolder in config
&& files=$(grep -rl "/config" /defaults/*) && echo $files | xargs sed -i "s|/config|/config/piwigo|g" \
&& files=$(grep -rl "/config" /etc/cont-init.d/*) && echo $files | xargs sed -i "s|/config|/config/piwigo|g" \
&& files=$(grep -rl "/gallery/include/config/piwigo/piwigo_default.inc.php" /etc/*) && echo $files | xargs sed -i "s|/gallery/include/config/piwigo/piwigo_default.inc.php|/gallery/include/config_default.inc.php|g" \
&& files=$(grep -rl "/config" /etc/services.d/*) && echo $files | xargs sed -i "s|/config|/config/piwigo|g"
&& files=$(grep -rl "/config/" /defaults/*) && echo $files | xargs sed -i "s|/config/|/config/piwigo/|g" \
&& files=$(grep -rl "/config/" /etc/cont-init.d/*) && echo $files | xargs sed -i "s|/config/|/config/piwigo/|g" \
&& files=$(grep -rl "/config/" /etc/services.d/*) && echo $files | xargs sed -i "s|/config/|/config/piwigo/|g" \
&& files=$(grep -rl " /config" /etc/cont-init.d/*) && echo $files | xargs sed -i "s= /config= /config/piwigo=g"