WIP: initial draft

This commit is contained in:
root 2021-03-17 13:52:01 -04:00
parent 433c7c3f94
commit 24bbfc4add
2 changed files with 14 additions and 3 deletions

View file

@ -5,6 +5,8 @@
TODAY=`date` TODAY=`date`
HOSTNAME=`hostname` HOSTNAME=`hostname`
ARGLINE="$@"
echo $ARGLINE
function debug function debug
{ {
@ -70,7 +72,16 @@ function send_notification
function become function become
{ {
sudo su - local tempfile
if test -z "$BECOME"; then
echo $BASH_SOURCE
exit
chmod 0755 $tempfile
sudo su - --command=$tempfile
rm $tempfile
exit
fi
} }
function check_values function check_values

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/bin/bash -x
# #
# Create Vhosts on VPS3 # Create Vhosts on VPS3
# #
@ -118,7 +118,7 @@ if test -z "$_root" -a -z "$_backend"; then
fi fi
# gain priviledges # gain priviledges
become become $@
echo -n "Checking if /srv/http-content-combined/ exists?" echo -n "Checking if /srv/http-content-combined/ exists?"
if ! test -d /srv/http-content-combined; then if ! test -d /srv/http-content-combined; then