Files
srv-pub/scr/0_download_scripts.sh
2025-10-28 14:50:36 -05:00

37 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/branch/trunk/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}/2a_postgrest_install.sh
wget ${base_url_scr}/2b_postgrest_service.sh
wget ${base_url_scr}/3_create_user.sh
wget ${base_url_scr}/4_acmesh.sh
wget ${base_url_scr}/5_https.sh
wget ${base_url_scr}/6_add_www_root.sh
chmod 755 /tmp/*.sh