This commit is contained in:
zj
2026-01-23 05:29:54 +08:00
parent 680f3877fb
commit 643f10d77f
5 changed files with 23 additions and 0 deletions

View File

@@ -138,4 +138,18 @@ post_install() {
fi
mv -f /home/smart/.tms3/starter/tms-ssh.conf /etc/ssh/ssh_config.d/tms-ssh.conf
}
## arg 1: the new package version
## arg 2: the old package version
pre_upgrade() {
rm -f /etc/ssh/ssh_config.d/tms-ssh.conf
}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
mv -f /home/smart/.tms3/starter/tms-ssh.conf /etc/ssh/ssh_config.d/tms-ssh.conf
}