This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
WEBROOT=/nextcloud | |
FILE=/entrypoint.sh | |
sed -i 's|occ config:system:set overwrite.cli.url --value="https://$NC_DOMAIN/"|occ config:system:set overwrite.cli.url --value="https://${NC_DOMAIN}'${WEBROOT}'"\nphp /var/www/html/occ config:system:set overwritewebroot --value="'${WEBROOT}'"|' "$FILE" | |
sed -i 's|https://$NC_DOMAIN/"|https://${NC_DOMAIN}'${WEBROOT}'"|' "$FILE" | |
sed -i 's|https://$NC_DOMAIN/|https://${NC_DOMAIN}'${WEBROOT}'/|' "$FILE" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GRAVITY_DB_FILE=/etc/pihole/gravity.db | |
ADLIST_DIRECTORY=/var/www/html/adlists/ | |
LIST_EXTENSION=.list | |
HOSTS_EXTENSION=.hosts | |
GROUP_NAME_SQL="SELECT DISTINCT name FROM 'group' WHERE enabled = 1;" | |
EXPORT_DOMAIN_SQL="SELECT DISTINCT gravity.domain \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TASKS=1 | |
DIRS=() | |
for o in "$@" ; do | |
case $o in | |
-t|--tasks) | |
TASKS=$2 | |
shift |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -o pipefail | |
if [ -z "$1" ] ; then echo "no device parameter" && exit 0 ; fi | |
BLOCK_DEVICE=$1 | |
LOG_FILE=shrink.log | |
# choose logical partition |