mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-09 07:20:58 +02:00
chmod +x scripts
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
##################
|
||||
# SYMLINK CONFIG #
|
||||
##################
|
||||
|
||||
#Create folders
|
||||
|
||||
if [ ! -d /share/piwigo ]; then
|
||||
echo "Creating /share/piwigo"
|
||||
mkdir -p /share/piwigo
|
||||
chown -R abc:abc /share/piwigo
|
||||
else
|
||||
chown -R abc:abc /share/piwigo
|
||||
fi
|
||||
|
||||
if [ ! -d /share/piwigo/config ]; then
|
||||
echo "moving config folder"
|
||||
mv /gallery/local/config /share/piwigo
|
||||
ln -s /share/piwigo/config /gallery/local
|
||||
echo "links done"
|
||||
else
|
||||
rm -r /gallery/local/config
|
||||
ln -s /share/piwigo/config /gallery/local
|
||||
echo "Using existing config"
|
||||
fi
|
||||
|
||||
if [ ! -d /share/piwigo/keys ]; then
|
||||
echo "moving keys folder"
|
||||
mv /config/keys /share/piwigo
|
||||
ln -s /share/piwigo/keys /config
|
||||
echo "links done"
|
||||
else
|
||||
rm -r /config/keys
|
||||
ln -s /share/piwigo/keys /config
|
||||
echo "Using existing keys folder"
|
||||
fi
|
||||
|
||||
##################
|
||||
# CORRECT CONFIG #
|
||||
##################
|
||||
# shellcheck disable=SC2015
|
||||
sed -i 's|E_ALL|""|g' /share/piwigo/config/config.inc.php && echo "config corrected for php error" || true
|
||||
Reference in New Issue
Block a user