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

update loaded env file and prompte for utils

parent 8569094e
No related branches found
No related tags found
1 merge request!17Reorganisation
#!/bin/bash #!/bin/bash
echo "============= $(basename "$0") =================" echo "RUN $(basename "$0") ==="
if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] if [ ! -e $(dirname "$0")/../main.env ]
then then
echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it"
exit 1 exit 1
else
echo "Environment file loaded"
fi fi
. $(pwd)/$(dirname "$0")/../main.env . $(dirname "$0")/../main.env
version=7.0 version=7.0
dol_path="/usr/share/dolibarr" dol_path="/usr/share/dolibarr"
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
echo "============= $(basename "$0") =================" echo "RUN $(basename "$0") ==="
LOGFILE="/var/log/clamav.log"; LOGFILE="/var/log/clamav.log";
EMAIL_TO="root"; EMAIL_TO="root";
......
#!/bin/bash #!/bin/bash
echo "============= $(basename "$0") =================" echo "RUN $(basename "$0") ==="
if [ -z "$(grep '^alias ls=' /root/.bashrc)" ] if [ -z "$(grep '^alias ls=' /root/.bashrc)" ]
then then
......
#!/bin/bash #!/bin/bash
echo "============= $(basename "$0") =================" echo "RUN $(basename "$0") ==="
if [ -z "$2" ] if [ -z "$2" ]
then then
......
#!/bin/bash #!/bin/bash
echo "============= $(basename "$0") =================" echo "RUN $(basename "$0") ==="
# Get Dolideb version list # Get Dolideb version list
curl \ curl \
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
echo "============= $(basename "$0") =================" echo "RUN $(basename "$0") ==="
isIP() isIP()
{ {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
echo "============= $(basename "$0") =================" echo "RUN $(basename "$0") ==="
# from https://doc.owncloud.org/server/9.0/admin_manual/installation/installation_wizard.html?highlight=trusted#trusted-domains # 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'} NEXTCLOUD_INSTALL_DIR=${NEXTCLOUD_INSTALL_DIR:-'/var/www/nextcloud'}
......
#!/bin/bash #!/bin/bash
echo "============= $(basename "$0") =================" echo "RUN $(basename "$0") ==="
if [ ! -e $(pwd)/$(dirname "$0")/../main.env ] if [ ! -e $(dirname "$0")/../main.env ]
then then
echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it" echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it"
exit 1 exit 1
else
echo "Environment file loaded"
fi fi
. $(pwd)/$(dirname "$0")/../main.env . $(dirname "$0")/../main.env
SCRIPT_DIRECTORY=`dirname $0` SCRIPT_DIRECTORY=`dirname $0`
. $SCRIPT_DIRECTORY/main.env . $SCRIPT_DIRECTORY/main.env
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment