mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Github bot : script beautyshied
This commit is contained in:
@@ -31,8 +31,8 @@ chmod -R 770 "$datadirectory"
|
|||||||
|
|
||||||
#Prevent permissions check
|
#Prevent permissions check
|
||||||
for files in /defaults/config.php /data/config/www/nextcloud/config/config.php; do
|
for files in /defaults/config.php /data/config/www/nextcloud/config/config.php; do
|
||||||
if [ -f "$files" ]; then
|
if [ -f "$files" ]; then
|
||||||
sed -i "/check_data_directory_permissions/d" "$files"
|
sed -i "/check_data_directory_permissions/d" "$files"
|
||||||
sed -i "/datadirectory/a 'check_data_directory_permissions' => false," "$files"
|
sed -i "/datadirectory/a 'check_data_directory_permissions' => false," "$files"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ mkdir -p "$CONFIG_LOCATION"
|
|||||||
chown -R abc:abc "$CONFIG_LOCATION"
|
chown -R abc:abc "$CONFIG_LOCATION"
|
||||||
chmod -R 755 "$CONFIG_LOCATION"
|
chmod -R 755 "$CONFIG_LOCATION"
|
||||||
|
|
||||||
for file in $(grep -Esril "/config/addons_config/overseerr" /etc/logrotate.d /defaults /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d); do
|
for file in $(grep -Esril "/config/addons_config/overseerr" /etc/logrotate.d /defaults /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d); do
|
||||||
sed -i "s=/config/addons_config/overseerr=$CONFIG_LOCATION=g" "$file"
|
sed -i "s=/config/addons_config/overseerr=$CONFIG_LOCATION=g" "$file"
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ if [ -d /config/addons_config/addons_config/overseerr ]; then
|
|||||||
mv /config/addons_config/addons_config/overseerr /config/addons_config/overseerr
|
mv /config/addons_config/addons_config/overseerr /config/addons_config/overseerr
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for file in $(grep -Esril "/config/.config/yarn" /usr /etc /defaults); do
|
for file in $(grep -Esril "/config/.config/yarn" /usr /etc /defaults); do
|
||||||
sed -i "s=/config/.config/yarn=/config/addons_config/overseerr/yarn=g" "$file"
|
sed -i "s=/config/.config/yarn=/config/addons_config/overseerr/yarn=g" "$file"
|
||||||
done
|
done
|
||||||
yarn config set global-folder /config/addons_config/overseerr/yarn
|
yarn config set global-folder /config/addons_config/overseerr/yarn
|
||||||
chown -R abc:abc /config/addons_config/overseerr
|
chown -R abc:abc /config/addons_config/overseerr
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ if bashio::config.has_value 'SavePath'; then
|
|||||||
# Replace save path
|
# Replace save path
|
||||||
CURRENTSAVEPATH=$(sed -n '/Downloads\\SavePath/p' qBittorrent.conf)
|
CURRENTSAVEPATH=$(sed -n '/Downloads\\SavePath/p' qBittorrent.conf)
|
||||||
sed -i "s|${CURRENTSAVEPATH#*=}|$DOWNLOADS|g" qBittorrent.conf || \
|
sed -i "s|${CURRENTSAVEPATH#*=}|$DOWNLOADS|g" qBittorrent.conf || \
|
||||||
sed -i "${LINE}a Downloads\\SavePath\\$DOWNLOADS" qBittorrent.conf
|
sed -i "${LINE}a Downloads\\SavePath\\$DOWNLOADS" qBittorrent.conf
|
||||||
|
|
||||||
# Replace session save path
|
# Replace session save path
|
||||||
CURRENTSAVEPATH=$(sed -n '/Session\\DefaultSavePath/p' qBittorrent.conf)
|
CURRENTSAVEPATH=$(sed -n '/Session\\DefaultSavePath/p' qBittorrent.conf)
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ echo "... copy media files"
|
|||||||
#dirs=("conf" "logs" "media" "seafile-data" "seahub-data" "sqlite")
|
#dirs=("conf" "logs" "media" "seafile-data" "seahub-data" "sqlite")
|
||||||
#for dir in "${dirs[@]}"
|
#for dir in "${dirs[@]}"
|
||||||
#do
|
#do
|
||||||
# mkdir -p "$DATA_LOCATION/$dir"
|
# mkdir -p "$DATA_LOCATION/$dir"
|
||||||
# chown -R seafile:seafile "$DATA_LOCATION/$dir"
|
# chown -R seafile:seafile "$DATA_LOCATION/$dir"
|
||||||
# ln -fs "$DATA_LOCATION/$dir" /shared
|
# ln -fs "$DATA_LOCATION/$dir" /shared
|
||||||
# rm /shared/"$dir"
|
# rm /shared/"$dir"
|
||||||
#done
|
#done
|
||||||
|
|||||||
Reference in New Issue
Block a user