Files
srv-pub/scr/0_download_scripts.sh
fro d7002946a7 / update
aka "u"
2025-10-26 21:28:20 -05:00

36 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# downloads all needed scripts / frode klevstul / oct 2025
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# first time setup:
#
# - ssh usr@srv -p [port]
# - cd /tmp
# - wget https://gt.op.fo/fro/srv-pub/raw/branch/trunk/scr/0_download_scripts.sh
# - chmod 755 *.sh
# - ./0_download_scripts.sh
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ "$EUID" -ne 0 ]
then echo "error: run as 'root'"
exit
fi
base_url_scr=https://gt.op.fo/fro/srv-pub/raw/trunk/master/scr
rm /tmp/*.sh
cd /tmp/
wget ${base_url_scr}/0_download_scripts.sh
#wget ${base_url_scr}/1_upd_install.sh
#wget ${base_url_scr}/2_create_user.sh
#wget ${base_url_scr}/3_acmesh.sh
#wget ${base_url_scr}/4_https.sh
#wget ${base_url_scr}/5_add_www_root.sh
#wget ${base_url_scr}/6_populate_www_root.sh
#wget ${base_url_scr}/7_nginx_add_site.sh
chmod 755 /tmp/*.sh