split the wingman commands to two seperate commands for servesync to pick them up

This commit is contained in:
mischa 2024-05-09 20:27:14 +02:00
parent ae548bb979
commit 06b1de99fa
1 changed files with 2 additions and 1 deletions

View File

@ -58,6 +58,7 @@ fi
if [[ "${SERVER}" == server* ]] || [[ "${SERVER}" == mega* ]]; then
openrsync -va --del /home/mischa/vms/ mischa@wm1.obsda.ms:vms/${HOST}/
ssh wm1.obsda.ms "doas userdel -r ${HOST}${1%.txt} && doas groupdel ${HOST}${1%.txt}"
ssh wm1.obsda.ms "doas userdel -r ${HOST}${1%.txt}"
ssh wm1.obsda.ms "doas groupdel ${HOST}${1%.txt}"
openrsync -va --del /home/mischa/vms/ mischa@rx.high5.nl:vms/${HOST}/
fi