Update all new server scripts

This commit is contained in:
2023-09-06 13:56:08 +02:00
parent a7ed28ff02
commit b0310e14c7
18 changed files with 236 additions and 45 deletions

View File

@@ -2,32 +2,53 @@
cd "$( dirname "$( realpath "$0" )" )"
. ../Lib.sh
h=home/pi
h=home/tux
SetScope Root
mkcd ./Root
CpSufx etc/ diycron
for f in \
diycron ncshell OneShot.AfterBoot bittorrentd \
diycron ncshell OneShot.AfterBoot bittorrentd SocatIpProxies \
Shiori ShioriFeed \
CringeInoltro WinDog \
TelegramIndex WebFileManager \
SpaccCraft
do
cpfile "etc/systemd/system/$f.service"
SpaccCraft FreshRSS-actualize \
; do
CpItem "etc/systemd/system/${f}.service"
CpItem "etc/systemd/system/${f}.timer"
done
CpItem etc/nginx/nginx.conf
CpSufx "etc/nginx/sites-available/*." conf old
CpItem etc/tor/torrc
for f in \
WindowsServer2022 Windows7Earnapp1 \
; do CpItem "etc/systemd/system/Vm${f}.service"
done
#CpItem etc/nginx/nginx.conf
#CpSufx "etc/nginx/sites-available/*." conf old
#CpItem etc/tor/torrc
CpSufx "Main/Server/Scripts/*." sh
CpSufx "Main/Server/Scripts/Backup/*." sh cfg
CpSufx "Main/Server/Scripts/Interactive/*." sh
CpItem Main/Server/Scripts/OneShot.AfterBoot.sh
CpItem Main/Server/Scripts/RenewCerts.sh
#CpItem Main/Server/Scripts/OneShot.AfterBoot.sh
#CpItem Main/Server/Scripts/RenewCerts.sh
CpItem Main/Server/Start/bittorrentd
CpItem Main/Transfers/aria2/Conf
#CpItem Main/Server/Start/bittorrentd
#CpItem Main/Transfers/aria2/Conf
ScopePath=/var/lib/lxc/Debian2023/rootfs/
CpItem etc/nginx/nginx.conf
CpSufx "etc/nginx/sites-available/*." conf old
CpItem etc/tor/torrc
#for f in \
# SpaccBBS.conf SpaccCloud.conf XSpacc.conf admin.conf analytics.conf articles.conf feeds.conf root.conf \
#; do CpItem "etc/nginx/sites-available/${f}"
#done
ScopePath=/var/lib/lxc/Ubuntu2023-SpaccCraft/rootfs/
CpItem etc/systemd/system/SpaccCraft.service
cd ..