mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 09:28:20 +01:00
Github bot : script beautyshied
This commit is contained in:
@@ -62,7 +62,7 @@ if bashio::config.has_value 'networkdisks'; then
|
||||
server="$(echo "$disk" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+")"
|
||||
if ping -w 1 -c 1 8.8.8.8 >/dev/null; then
|
||||
ping -w 5 -c 1 "$server" >/dev/null || \
|
||||
{ bashio::log.fatal "Your server $server from $disk doesn't ping, is it correct?"; break 2; }
|
||||
{ bashio::log.fatal "Your server $server from $disk doesn't ping, is it correct?"; break 2; }
|
||||
fi
|
||||
|
||||
# Prepare mount point
|
||||
|
||||
@@ -44,7 +44,7 @@ for files in /defaults/config.php /data/config/www/nextcloud/config/config.php;
|
||||
sed -i "/datadirectory/a 'check_data_directory_permissions' => false," "$files"
|
||||
fi
|
||||
done
|
||||
sudo -u abc php /data/config/www/nextcloud/occ config:system:set check_data_directory_permissions --value=false --type=bool || echo "Please install nextcloud first"
|
||||
sudo -u abc php /data/config/www/nextcloud/occ config:system:set check_data_directory_permissions --value=false --type=bool || echo "Please install nextcloud first"
|
||||
|
||||
echo "...done"
|
||||
echo " "
|
||||
|
||||
Reference in New Issue
Block a user