diff --git a/checks/backups.sh b/checks/backups.sh index eab0aed900ef292e8852d1c3240089f6ee6d8424..afa03a1e87b29b5277147f11f4ca266830846a5f 100644 --- a/checks/backups.sh +++ b/checks/backups.sh @@ -1,5 +1,7 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + backup_system="" duplicity_dir="/opt/duplicity-ftp-backup/" duplicity_alt_dir="/root/duplicity-ftp-backup/" diff --git a/checks/kernel.sh b/checks/kernel.sh index bb03fa69872caeedfb17a6a353cacfd5b305df12..a7f20fe878c3adb091fd5c6a754e130a8859093f 100644 --- a/checks/kernel.sh +++ b/checks/kernel.sh @@ -1,5 +1,7 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + # Check if reeboot is requird last_kernel="$(dpkg -l | awk '/linux-image-[0-9]/{print $2}' | sort -rn | head -n 1)" running_kernel="linux-image-$(uname -r)" diff --git a/checks/list_domains.sh b/checks/list_domains.sh index 54f49be2c2216ba60974274a0453b78c098c9bfa..350ec38f80f76a5bf24c96d1059b9ce3c931e62a 100644 --- a/checks/list_domains.sh +++ b/checks/list_domains.sh @@ -1,4 +1,7 @@ #!/bin/bash + +echo "============= $(basename "$0") =================" + if [ "${WEB_SERVER}" == "apache2" ] then apache2ctl -S 2>/dev/null | awk '/namevhost/{print "https://"$4}' | sort -u | grep -v "127.0...1" @@ -17,6 +20,3 @@ if id "dockerweb" >/dev/null 2>&1; then echo "===== list of domain ====" docker ps -qa | xargs docker inspect | awk '/traefik.http.routers.*.rule/{print $2}' | sed -e 's/^"Host(`//' -e 's/`)",//' -e 's/`,`/\n/g' | grep -v '!ClientIP' | sort -u fi - - - diff --git a/checks/mail.sh b/checks/mail.sh index f639e796981b0afab520cd9ddc2cc89e7af25ca4..159335ba87c1b2daef0b1f2bed0bf56a6fd311ae 100644 --- a/checks/mail.sh +++ b/checks/mail.sh @@ -1,3 +1,4 @@ #!/bin/bash -Subject: test\n\nCeci est un test" | sendmail -t root +echo "============= $(basename "$0") =================" +Subject: test\n\nCeci est un test" | sendmail -t root diff --git a/checks/rkhunter.sh b/checks/rkhunter.sh index 76005512238975913b1d500aef5605bbaee101c5..3569d357af38c6f29c06329074f4040ffe5c2974 100644 --- a/checks/rkhunter.sh +++ b/checks/rkhunter.sh @@ -1,5 +1,7 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + # Check rootkits and antivirus if [ `grep -c "^ALLOWHIDDENDIR=/etc/.java" /etc/rkhunter.conf` -eq 0 ] then diff --git a/install/AptCacher.sh b/install/AptCacher.sh index 9938725bb258587696f280647d7178680ffc7818..8fd0b75a458183a609c0553e777653e06218187d 100755 --- a/install/AptCacher.sh +++ b/install/AptCacher.sh @@ -1,8 +1,10 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to ain.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/install/Base.sh b/install/Base.sh index c8b8ee76ddae341034778fddcbc080f4df339ca6..8eff28163593c497724c1bd2fd8d54236ed87ad7 100644 --- a/install/Base.sh +++ b/install/Base.sh @@ -18,9 +18,11 @@ set -o nounset # Treat unset variables as an error +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/install/Certbot.sh b/install/Certbot.sh index 65fc52c710d1117e78d782d5e321cdab1bd5cd5b..bbd2cefcbe26da934188353d7e854c384fa2491e 100755 --- a/install/Certbot.sh +++ b/install/Certbot.sh @@ -16,10 +16,11 @@ # You should have received a copy of the GNU General Public License # along # with this program. If not, see <http://www.gnu.org/licenses/>. +echo "============= $(basename "$0") =================" if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/install/Collabora.sh b/install/Collabora.sh index 0cf6d999bbfd5e4f4b0ed180ebf56adbcceaef69..f6cb72f0484e45b61857660ccfebd90684b9b5b7 100644 --- a/install/Collabora.sh +++ b/install/Collabora.sh @@ -18,9 +18,11 @@ set -o nounset # Treat unset variables as an error +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/install/Dolibarr.sh b/install/Dolibarr.sh index 45222d0a7d3b70ec54bc5c9e1bfcd00ce3d3ed76..3e6e0dd84207aa0a49bfcffc0e23722db12638de 100644 --- a/install/Dolibarr.sh +++ b/install/Dolibarr.sh @@ -18,9 +18,11 @@ set -o nounset # Treat unset variables as an error +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/install/GlpiAgent.sh b/install/GlpiAgent.sh index 6102176c53d66d631b79dee0b415ce4de47a29df..7e39ec04df10a09a1fd571014995837a451c0c93 100644 --- a/install/GlpiAgent.sh +++ b/install/GlpiAgent.sh @@ -1,4 +1,6 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + cd /tmp wget -O glpi.deb https://github.com/glpi-project/glpi-agent/releases/download/1.4/glpi-agent_1.4-1_all.deb dpkg -i glpi.deb diff --git a/install/Monit.sh b/install/Monit.sh index bc81bbe6c2004e3bb6fa961e6803bf03eeb5c3f5..53c05e4525fc4d5eeaa0647bc31af5a2ea76cf0a 100644 --- a/install/Monit.sh +++ b/install/Monit.sh @@ -1,8 +1,10 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/install/MySQL.sh b/install/MySQL.sh index ad11186b2a76abb4cd40e1667617c4e8c9232b2f..5c8a2ab1a1ca350adeaed3d5d95d6893caaa61bb 100644 --- a/install/MySQL.sh +++ b/install/MySQL.sh @@ -18,9 +18,11 @@ set -o nounset # Treat unset variables as an error +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/install/Nextcloud.sh b/install/Nextcloud.sh index cf7831f8618527ef10a22e18e017f07f548031a9..2829fac3d3e6380906ab10bde2b0c4f71cde7ac0 100644 --- a/install/Nextcloud.sh +++ b/install/Nextcloud.sh @@ -18,9 +18,11 @@ set -o nounset # Treat unset variables as an error +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/install/NextcloudApps.sh b/install/NextcloudApps.sh index a5b7834663a1ce698567345d19ca966997e7d783..0ab8c32c941d4f3a69d8bfe7036fc6470cc43454 100644 --- a/install/NextcloudApps.sh +++ b/install/NextcloudApps.sh @@ -15,6 +15,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +echo "============= $(basename "$0") =================" + NEXTCLOUD_INSTALL_DIR="/var/www/nextcloud/" APPS="tasks news talk calendar contacts impersonate" diff --git a/install/OnlyOffice.sh b/install/OnlyOffice.sh index f29e472d71d15d3c98e1bbd53d0ee78e73e3d329..9b2855a664f318e12c0244b8ef1f7861f6377002 100644 --- a/install/OnlyOffice.sh +++ b/install/OnlyOffice.sh @@ -1,8 +1,10 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/install/TetrasBack.sh b/install/TetrasBack.sh index 7219a650af90ca309a13c6a6c6cec635c7f4f050..1a04cc1c3608f085d10613022438ba85d3cb596f 100644 --- a/install/TetrasBack.sh +++ b/install/TetrasBack.sh @@ -16,6 +16,7 @@ # You should have received a copy of the GNU General Public License # along # with this program. If not, see <http://www.gnu.org/licenses/>. +echo "============= $(basename "$0") =================" TB_CONFIG_ServerName=${TB_CONFIG_ServerName:-tetras-back.${DOMAIN}} TB_CONFIG_ServerAdmin=${TB_CONFIG_ServerAdmin:-${SERVER_ADMIN}} @@ -24,7 +25,7 @@ set -o nounset # Treat unset variables as an error if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/install/Traefik.sh b/install/Traefik.sh index 11cf5c4bf0642687267ec92074130decaaded870..5adfac28e0582c2bd404d0b859b960eac884658d 100644 --- a/install/Traefik.sh +++ b/install/Traefik.sh @@ -1,8 +1,10 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/install/WebServer.sh b/install/WebServer.sh index 3f635f5fdb0e4b71876344b394e83ae41b1051c9..9b68940243570659a37b7c18ef43eb089d898e11 100644 --- a/install/WebServer.sh +++ b/install/WebServer.sh @@ -18,15 +18,17 @@ set -o nounset # Treat unset variables as an error -apt-get update +echo "============= $(basename "$0") =================" if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env +apt-get update + if [ "${WEB_SERVER}" == "apache2" ] then export WEB_SERVER_PACKAGES="apache2" diff --git a/install/ncdu.sh b/install/ncdu.sh index c06ef331c211ed42385db178bf5546d0706b32b0..701fd0f649446c85f03ae36259adf8f5f7ca11b8 100644 --- a/install/ncdu.sh +++ b/install/ncdu.sh @@ -1,5 +1,7 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + # Install ncdu for disk usage analysis if [ -z "$(dpkg -l | grep ncdu)" ]; then apt-get update && apt-get install -y ncdu diff --git a/run.sh b/run.sh index 9a3a4506e6f654f182f3cb62cbc940a4d52d78bc..959b02a6ff5e56cfb42247155367939363158646 100644 --- a/run.sh +++ b/run.sh @@ -18,6 +18,8 @@ set -o nounset # Treat unset variables as an error +echo "============= $(basename "$0") =================" + if [ ! -e `pwd`/main.env ] then echo "Please copy `pwd`/main.env.sample to `pwd`/main.env and edit it" diff --git a/upgrade/All.sh b/upgrade/All.sh index 2489a1fcbc22277bc85750b73f1a4a5b4e1e2cb6..ea2a1912d643768e0143e95273ece36d7514ac1c 100644 --- a/upgrade/All.sh +++ b/upgrade/All.sh @@ -16,10 +16,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +echo "============= $(basename "$0") =================" if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/upgrade/Collabora.sh b/upgrade/Collabora.sh index 4c03104b6bd52adb33d4f5220c9eed2b10738794..d144783f0c19633a7b2c5c9f292f569a554b494e 100644 --- a/upgrade/Collabora.sh +++ b/upgrade/Collabora.sh @@ -1,8 +1,10 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/upgrade/Dolibarr.sh b/upgrade/Dolibarr.sh index e9da32000ac40640f816bcffb2b87d7f935562cb..31fe92e51ef8b552b4c583fa62c996a99a90ee0d 100644 --- a/upgrade/Dolibarr.sh +++ b/upgrade/Dolibarr.sh @@ -16,9 +16,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/upgrade/Monit.sh b/upgrade/Monit.sh index fde531941c3ff3a9f59da176c3231a6da0bfdb6c..523cafefcdc8d2e63dfcb99a4defe50ab8dfbb42 100644 --- a/upgrade/Monit.sh +++ b/upgrade/Monit.sh @@ -1,7 +1,10 @@ #!/bin/bash + +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/upgrade/Nextcloud.sh b/upgrade/Nextcloud.sh index 37048074f56cb8881b6c8d4aac704b9d053f7ed9..a23b5beb35058441cbc0ea54c03372d981b10a2d 100644 --- a/upgrade/Nextcloud.sh +++ b/upgrade/Nextcloud.sh @@ -16,6 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +echo "============= $(basename "$0") =================" + NEXTCLOUD_INSTALL_DIR=${NEXTCLOUD_INSTALL_DIR:-'/var/www/nextcloud'} NEXTCLOUD_INSTALL_DIR=`echo $NEXTCLOUD_INSTALL_DIR | sed 's@/*$@@'` htuser=${htuser:-'www-data'} diff --git a/upgrade/TetrasBack.sh b/upgrade/TetrasBack.sh index b257d88044965eb18abe0c138759fa92c876cdb1..b5bfe5b629560cb56eb78c4acf99b98ec4fed661 100644 --- a/upgrade/TetrasBack.sh +++ b/upgrade/TetrasBack.sh @@ -16,6 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +echo "============= $(basename "$0") =================" + OLD=$PWD DIR="$OLD/Tetras-back" if [ ! -d $DIR ] diff --git a/upgrade/Traefik.sh b/upgrade/Traefik.sh index ad745252355600cf8d3fd58742ba2d9c83cebd9d..675bbd9c318cc8f8d86b876d7237d78db6c2749d 100644 --- a/upgrade/Traefik.sh +++ b/upgrade/Traefik.sh @@ -1,5 +1,7 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + # Services maintenance cd /home/dockerweb diff --git a/upgrade/WebServer.sh b/upgrade/WebServer.sh index b19ad2f7151670eaa58aa2b4c186eb505419ddfd..163b9b2101ac4eb2e66540fc3cbe167872e255a6 100644 --- a/upgrade/WebServer.sh +++ b/upgrade/WebServer.sh @@ -1,8 +1,10 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/utils/attestDolibarr.sh b/utils/attestDolibarr.sh index da5833636dec5fe659a4dee919e412e41a71bd1c..3b047f68dfd8201a754796872da3aff77d86f9b0 100755 --- a/utils/attestDolibarr.sh +++ b/utils/attestDolibarr.sh @@ -1,7 +1,10 @@ #!/bin/bash + +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/utils/clamav-weekly.sh b/utils/clamav-weekly.sh index 7f812acbc5a65fd460d614da163d6cf8c8cea55a..009b4aff0ef20b244b48b7d59683e4f568c43ccd 100755 --- a/utils/clamav-weekly.sh +++ b/utils/clamav-weekly.sh @@ -16,6 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +echo "============= $(basename "$0") =================" LOGFILE="/var/log/clamav.log"; EMAIL_TO="root"; @@ -23,7 +24,7 @@ DIRTOSCAN="/var/www /home"; do_sendmail(){ message+="\n\n==== LOG ====\n\n" - while read line + while read line do message+="$line\n" done < $LOGFILE diff --git a/utils/configure_base_tools.sh b/utils/configure_base_tools.sh index d60205b7a778a0b97f40f224a1c9cb34475e2ce1..baaae43f93b50d7484e5136027890aeead97cee8 100755 --- a/utils/configure_base_tools.sh +++ b/utils/configure_base_tools.sh @@ -1,4 +1,6 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + if [ -z "$(grep '^alias ls=' /root/.bashrc)" ] then echo 'alias ls="ls -lstrh --color=auto"' >> /root/.bashrc diff --git a/utils/expandCertbot.sh b/utils/expandCertbot.sh index 98d9d8d571a0c68e5ff5895cc4a25815c6ec579d..4504b13d29affa87d094e79e66ca5f139c53ba4f 100644 --- a/utils/expandCertbot.sh +++ b/utils/expandCertbot.sh @@ -1,4 +1,6 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + if [ -z "$2" ] then echo "usage $0 additional-dommains certificate" @@ -10,4 +12,3 @@ domains="`openssl x509 -in $2 -inform pem -noout -text | grep DNS | sed -e 's/ echo "Requesting certificate for domains: '$domains'" certbot certonly --expand --apache --must-staple --hsts --domains=$domains - diff --git a/utils/getLastDolibarrDeb.sh b/utils/getLastDolibarrDeb.sh index cfc1800fb11bb244ec3c4419c39ba287ce706651..7b4f9df27d6e27973ab5f9c459bbf9cfdbba979f 100755 --- a/utils/getLastDolibarrDeb.sh +++ b/utils/getLastDolibarrDeb.sh @@ -1,4 +1,6 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + # Get Dolideb version list curl \ https://sourceforge.net/projects/dolibarr/files/Dolibarr%20installer%20for%20Debian-Ubuntu%20%28DoliDeb%29/ \ diff --git a/utils/getip.sh b/utils/getip.sh index 41723c0bee26c37fac135ca4e973520e63da038a..378ccb68c205b3355f967e1b393a2359868802a3 100755 --- a/utils/getip.sh +++ b/utils/getip.sh @@ -15,6 +15,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +echo "============= $(basename "$0") =================" isIP() { @@ -44,4 +45,3 @@ do exit 0 fi done - diff --git a/utils/healthReport.sh b/utils/healthReport.sh index 0065e48cb8742b64a93f371c46a26fe0b62391f0..9abebdc859e92c7d577151dc3a524a0bd797f225 100755 --- a/utils/healthReport.sh +++ b/utils/healthReport.sh @@ -15,6 +15,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +echo "============= $(basename "$0") =================" recipient="root" level=info diff --git a/utils/nextcloudStrongDirectoryPermissions.sh b/utils/nextcloudStrongDirectoryPermissions.sh index cddabb19f554d41b68984328657ae9501e06a80b..d9e7304e36c65ad590d69437b3b2a4e7ef47b509 100755 --- a/utils/nextcloudStrongDirectoryPermissions.sh +++ b/utils/nextcloudStrongDirectoryPermissions.sh @@ -16,6 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +echo "============= $(basename "$0") =================" + # from https://doc.owncloud.org/server/9.0/admin_manual/installation/installation_wizard.html?highlight=trusted#trusted-domains NEXTCLOUD_INSTALL_DIR=${NEXTCLOUD_INSTALL_DIR:-'/var/www/nextcloud'} htuser=${htuser:-'www-data'} diff --git a/utils/startcollabora.sh b/utils/startcollabora.sh index 5489dde088cee2e0106afbf92e132067c37695ca..ebf8403644249fe55937836baf134cd8c4f985a3 100755 --- a/utils/startcollabora.sh +++ b/utils/startcollabora.sh @@ -1,8 +1,10 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] then - echo "Please copy in racine of NoCloud Auto Installer main.env.sample tomain.env and edit it" + echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" exit 1 fi . $(pwd)/$(dirname "$0")/../main.env diff --git a/validate.sh b/validate.sh index 3fe43a6762216d4b1176bad3ee0f5671d2297865..664a9a846e6595deb01eed0e6aa39c596491d4be 100755 --- a/validate.sh +++ b/validate.sh @@ -1,5 +1,7 @@ #!/bin/bash +echo "============= $(basename "$0") =================" + RED='\033[0;31m' NC='\033[0m' # No Color