Configs/Server/Repo.Update.sh

56 lines
1.2 KiB
Bash
Raw Normal View History

#!/bin/sh
cd "$( dirname "$( realpath "$0" )" )"
2023-04-14 18:47:33 +02:00
. ../Lib.sh
2023-09-06 13:56:08 +02:00
h=home/tux
2023-05-19 19:54:24 +02:00
SetScope Root
2023-04-14 18:47:33 +02:00
mkcd ./Root
2023-10-03 09:15:42 +02:00
CpSufx etc/ diycron diycron.zx.mjs
2023-05-21 18:54:02 +02:00
for f in \
2023-09-06 13:56:08 +02:00
diycron ncshell OneShot.AfterBoot bittorrentd SocatIpProxies \
2023-05-21 18:54:02 +02:00
Shiori ShioriFeed \
CringeInoltro WinDog \
TelegramIndex WebFileManager \
2023-09-06 13:56:08 +02:00
SpaccCraft FreshRSS-actualize \
; do
CpItem "etc/systemd/system/${f}.service"
CpItem "etc/systemd/system/${f}.timer"
2023-04-14 18:47:33 +02:00
done
2023-03-08 17:44:03 +01:00
CpSufx "Main/Server/VMs/*." sh
2023-09-06 13:56:08 +02:00
for f in \
WindowsServer2022 Windows7Earnapp1 \
; do CpItem "etc/systemd/system/Vm${f}.service"
done
2023-10-03 09:15:42 +02:00
CpSufx "Main/Server/Scripts/*." sh mjs
2023-08-29 17:40:07 +02:00
CpSufx "Main/Server/Scripts/Backup/*." sh cfg
CpItem Main/Server/Scripts/Interactive
2023-09-06 13:56:08 +02:00
#CpItem Main/Server/Scripts/OneShot.AfterBoot.sh
#CpItem Main/Server/Scripts/RenewCerts.sh
2023-10-03 09:15:42 +02:00
CpItem Main/Server/Start/aria2c
CpItem Main/Transfers/aria2/Conf
2023-09-06 13:56:08 +02:00
ScopePath=/var/lib/lxc/Debian2023/rootfs/
CpItem etc/nginx/nginx.conf
CpSufx "etc/nginx/sites-available/*." conf old
CpItem etc/tor/torrc
ScopePath=/var/lib/lxc/Ubuntu2023-SpaccCraft/rootfs/
CpItem etc/systemd/system/SpaccCraft.service
2023-04-14 22:15:31 +02:00
2023-04-14 18:47:33 +02:00
cd ..
2023-05-19 19:54:24 +02:00
SetScope Home
2023-04-14 18:47:33 +02:00
mkcd ./Home
2023-04-14 22:15:31 +02:00
#mkdir -vp ./.config
#for p in \
# aria2
#do
# cp -vrT /$h/.config/$p ./.config/$p
#done