Github bot : script beautyshied

This commit is contained in:
github-actions
2023-04-16 00:12:34 +00:00
parent b3c8f1ceee
commit 806b521354
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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 " "