Skip to content
Snippets Groups Projects
Commit 9024576f authored by Elian Loraux's avatar Elian Loraux
Browse files

add basename

parent f70eea5b
No related branches found
No related tags found
1 merge request!17Reorganisation
......@@ -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"
......
......@@ -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") ================="
if [ ! -e $(pwd)/$(dirname "$0")/../main.env ]
then
......
#!/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 to main.env and edit it"
......
......@@ -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") ================="
if [ ! -e $(pwd)/$(dirname "$0")/../main.env ]
then
echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it"
......
#!/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 to main.env and edit it"
......
......@@ -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'}
......
......@@ -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 ]
......
#!/bin/bash
echo "============= $(basename "$0") ================="
# Services maintenance
cd /home/dockerweb
......
#!/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 to main.env and edit it"
......
#!/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 to main.env and edit it"
......
......@@ -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";
......
#!/bin/bash
echo "============= $(basename "$0") ================="
if [ -z "$(grep '^alias ls=' /root/.bashrc)" ]
then
echo 'alias ls="ls -lstrh --color=auto"' >> /root/.bashrc
......
#!/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
#!/bin/bash
echo "============= $(basename "$0") ================="
# Get Dolideb version list
curl \
https://sourceforge.net/projects/dolibarr/files/Dolibarr%20installer%20for%20Debian-Ubuntu%20%28DoliDeb%29/ \
......
......@@ -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
......@@ -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
......
......@@ -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'}
......
#!/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 to main.env and edit it"
......
#!/bin/bash
echo "============= $(basename "$0") ================="
RED='\033[0;31m'
NC='\033[0m' # No Color
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment