Files
srv-pub/scr/0_download_scripts.sh
2025-12-09 19:44:28 -05:00

39 lines
1.1 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://gi.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://gi.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
wget ${base_url_scr}/7_add_www_placeholder.sh
wget ${base_url_scr}/8_nginx_enable_site.sh
chmod 755 /tmp/*.sh