diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index 13f1e66..8dac641 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -83,22 +83,16 @@ systemctl enable sshsvc.service systemctl enable captrace.service systemctl enable adb.service systemctl daemon-reload -sudo systemctl restart nginx.service -sudo systemctl restart adb.service -sudo systemctl restart crontask.service -sudo systemctl restart sshsvc.service -sudo systemctl restart captrace.service -sudo systemctl restart restagent.service -#sudo systemctl stop nginx.service -#sudo systemctl stop restagent.service -#sudo systemctl stop crontask.service -#sudo systemctl stop sshsvc.service -#sudo systemctl stop captrace.service -#sudo systemctl stop adb.service -##sudo systemctl start nginx.service -#sudo systemctl start adb.service -#sudo systemctl start crontask.service -#sudo systemctl start sshsvc.service -#sudo systemctl start captrace.service -#sudo systemctl start restagent.service +sudo systemctl stop nginx.service +sudo systemctl stop restagent.service +sudo systemctl stop crontask.service +sudo systemctl stop sshsvc.service +sudo systemctl stop captrace.service +sudo systemctl stop adb.service +sudo systemctl start nginx.service +sudo systemctl start adb.service +sudo systemctl start crontask.service +sudo systemctl start sshsvc.service +sudo systemctl start captrace.service +sudo systemctl start restagent.service diff --git a/debbuild/22.04/DEBIAN/postrm b/debbuild/22.04/DEBIAN/postrm index 7562b9d..a224caa 100644 --- a/debbuild/22.04/DEBIAN/postrm +++ b/debbuild/22.04/DEBIAN/postrm @@ -9,11 +9,11 @@ rm libwiretap.so rm libwsutil.so.13 rm libwsutil.so #systemctl stop nginx.service -#systemctl stop restagent.service -#systemctl stop crontask.service -#systemctl stop sshsvc.service -#systemctl stop captrace.service -#systemctl stop adb.service +systemctl stop restagent.service +systemctl stop crontask.service +systemctl stop sshsvc.service +systemctl stop captrace.service +systemctl stop adb.service #rm -rf /usr/local/omc rm -rf /etc/nginx/conf.d/omc.conf diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index 9501d11..725cba9 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -37,18 +37,13 @@ if [ ! -e libwsutil.so.13 ]; then ln -s libwsutil.so.13.1.0 libwsutil.so.13; fi if [ ! -e libwsutil.so ]; then ln -s libwsutil.so.13.1.0 libwsutil.so; fi cd ${UsrLocalBinDir} if [ ! -e ${OmcDaemon} ]; then ln -s ${OmcBinDir}/omcsvc.sh ${OmcDaemon}; fi -systemctl enable restagent.service -systemctl enable crontask.service -systemctl enable sshsvc.service -systemctl enable captrace.service -systemctl enable adb.service -systemctl daemon-reload chmod +rx /usr/local/omc/bin/* chmod +rx /usr/local/omc/* chmod +rx /usr/local/db/bin/* chmod +rx /usr/local/bin/* chmod -R 755 /usr/local/omc/htdocs/front + for CFile in ${CFileList}; do if [ ! -e "${OMCEtcDir}/${CFile}" ]; then cp ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}; @@ -82,6 +77,12 @@ if [ -e "${NginxSiteAvailable}/default" ]; then sed -i 's/listen 80 default_server;/listen 1080 default_server;/g' ${NginxSiteAvailable}/default sed -i 's/listen \[::\]:80 default_server;/listen \[::\]:1080 default_server;/g' ${NginxSiteAvailable}/default fi +systemctl enable restagent.service +systemctl enable crontask.service +systemctl enable sshsvc.service +systemctl enable captrace.service +systemctl enable adb.service +systemctl daemon-reload sudo systemctl stop nginx.service sudo systemctl stop restagent.service sudo systemctl stop crontask.service