[fix] Uninstall launcher if installed

This commit is contained in:
William Wernert
2020-11-04 14:19:25 -05:00
parent 3150367b1d
commit b2759c4c7c

View File

@@ -1435,6 +1435,17 @@ reinstall_init() {
# Remove container data directories # Remove container data directories
rm -rf /nsm/mysql rm -rf /nsm/mysql
# Remove the old launcher package in case the config changes
if [ $OS = 'centos' ]; then
if rpm -qa | grep launcher-final; then
yum remove -y launcher-final
fi
else
if dpkg -l | grep launcher-final; then
apt purge -y launcher-final
fi
fi
} >> $setup_log 2>&1 } >> $setup_log 2>&1
} }