Update Dockerfile

This commit is contained in:
Alexandre
2021-08-15 08:13:52 +02:00
committed by GitHub
parent 82f3467e9d
commit f000b2d819

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"