X-Git-Url: https://plomlompom.com/repos/?p=config;a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fsetup_web_static.sh;h=4c17398bca5ffb450d0d3d94fdd3c7dd0852cdf9;hp=b841507f4dafc324c09d7b1144ea9179a0a7839d;hb=0504405d378ed9f92ab63e2d339b52273ec8530d;hpb=a21865b8ee3bc737357a6267c05e7bc307af57d7 diff --git a/buster/setup_scripts/setup_web_static.sh b/buster/setup_scripts/setup_web_static.sh old mode 100644 new mode 100755 index b841507..4c17398 --- a/buster/setup_scripts/setup_web_static.sh +++ b/buster/setup_scripts/setup_web_static.sh @@ -12,7 +12,7 @@ domain="$1" # Install configs, set up firewall. config_tree_prefix="${HOME}/config/buster" ./install_for_target.sh web -./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" web +./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" web web_static nft -f /etc/nftables.conf # Set up letsencrypt certificate. TODO: Is it auto-renewed? @@ -21,7 +21,7 @@ certbot --nginx --agree-tos --redirect --no-eff-email -m "${mail}" -d "${domain} rm /etc/nginx/sites-enabled/default # Prepare NGINX config for Pleroma. -sed -i "s/example\.tld/${domain}/g" /etc/nginx/sites-available/static.nginx +sed -i "s/REPLACE_fqdn_ECALPER/${domain}/g" /etc/nginx/sites-available/static.nginx ln -s /etc/nginx/sites-available/static.nginx /etc/nginx/sites-enabled/static.nginx service nginx restart