No more need to package alternc-ssl
* Say good bye, thank a lot
This commit is contained in:
parent
c8d94d2a50
commit
3525041839
|
@ -1,5 +0,0 @@
|
|||
|
||||
@reboot root mkdir -p /var/run/alternc-ssl && chown alterncpanel:alterncpanel /var/run/alternc-ssl
|
||||
|
||||
# in case incron didn't work, fix ssl aliases every hour:
|
||||
44 * * * * root /usr/lib/alternc/ssl_alias_manager.sh
|
|
@ -1,20 +0,0 @@
|
|||
etc/alternc/templates/apache2/mods-available
|
||||
etc/apache2/conf.d
|
||||
usr/lib/alternc/install.d
|
||||
usr/share/alternc/install
|
||||
usr/share/doc/alternc-ssl
|
||||
usr/share/alternc/panel/admin/images
|
||||
usr/share/alternc/panel/admin/styles
|
||||
usr/share/alternc/panel/class
|
||||
usr/share/alternc/panel/locales/en_US/LC_MESSAGES
|
||||
usr/share/alternc/panel/locales/fr_FR/LC_MESSAGES
|
||||
usr/share/alternc/panel/locales/it_IT/LC_MESSAGES
|
||||
usr/share/alternc/panel/locales/nl_NL/LC_MESSAGES
|
||||
usr/share/alternc/panel/locales/de_DE/LC_MESSAGES
|
||||
usr/share/alternc/panel/locales/pt_BR/LC_MESSAGES
|
||||
usr/share/alternc/panel/locales/es_ES/LC_MESSAGES
|
||||
var/lib/alternc/backups
|
||||
etc/alternc/functions_hosting
|
||||
etc/incron.d
|
||||
usr/share/php/Alternc/Api/Object
|
||||
var/lib/alternc/ssl/private
|
|
@ -1,46 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
CONFIGFILE="/etc/alternc/local.sh"
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
. "$CONFIGFILE"
|
||||
|
||||
# Then, configure the quota for "ssl"
|
||||
/usr/lib/alternc/quota_init ssl 0
|
||||
|
||||
echo "Installing mysql table"
|
||||
mysql --defaults-file=/etc/alternc/my.cnf -f < /usr/share/alternc/install/ssl.sql || true
|
||||
|
||||
echo "installing required apache modules"
|
||||
a2enmod ssl
|
||||
|
||||
echo "$2" >/var/lib/alternc/backups/alternc-ssl-lastversion
|
||||
|
||||
echo -e "\033[31m**********************************************"
|
||||
echo "* *"
|
||||
echo "* ALTERNC-SSL ACTION REQUESTED *"
|
||||
echo "* *"
|
||||
echo "* Please run alternc.install to fully deploy *"
|
||||
echo "* Then change your quota to activate SSL Cert*"
|
||||
echo "* *"
|
||||
echo "**********************************************"
|
||||
echo -e "\033[0m"
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
#DEBHELPER#
|
||||
|
||||
# vim: et sw=4
|
|
@ -1,36 +0,0 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
CONFIGFILE="/etc/alternc/my.cnf"
|
||||
MENUFILE="/etc/alternc/menulist.txt"
|
||||
|
||||
case "$1" in
|
||||
remove)
|
||||
|
||||
# TODO : we don't purge *-ssl vhosts or *-ssl templates, they may break the hosting ...
|
||||
if [ -e "$CONFIGFILE" -a -x "/usr/bin/mysql" ]; then
|
||||
mysql --defaults-file=${CONFIGFILE} -f -e "DELETE FROM domaines_type WHERE name IN ('vhost-ssl','vhost-mixssl','roundcube-ssl','squirrelmail-ssl','panel-ssl','php52-ssl','php52-mixssl');"
|
||||
mysql --defaults-file=${CONFIGFILE} -f -e "UPDATE sub_domaines SET web_action='DELETE' WHERE type IN ('vhost-ssl','vhost-mixssl','roundcube-ssl','squirrelmail-ssl','panel-ssl','php52-ssl','php52-mixssl');"
|
||||
fi
|
||||
echo -e "\033[31m**********************************************"
|
||||
echo "* *"
|
||||
echo "* ALTERNC-SSL ACTION REQUESTED *"
|
||||
echo "* *"
|
||||
echo "* Please run alternc.install to fully remove *"
|
||||
echo "* *"
|
||||
echo "**********************************************"
|
||||
echo -e "\033[0m"
|
||||
|
||||
;;
|
||||
purge)
|
||||
# Purge the certificate and alias table:
|
||||
if [ -e "$CONFIGFILE" -a -x "/usr/bin/mysql" ]; then
|
||||
mysql --defaults-file=${CONFIGFILE} -f -e "DROP TABLE IF EXISTS certificate;"
|
||||
mysql --defaults-file=${CONFIGFILE} -f -e "DROP TABLE IF EXISTS certif_alias;"
|
||||
mysql --defaults-file=${CONFIGFILE} -f -e "DROP TABLE IF EXISTS certif_hosts;"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
#DEBHELPER#
|
|
@ -16,7 +16,6 @@ override_dh_install:
|
|||
$(MAKE) install-awstats DESTDIR=$(CURDIR)/debian/alternc-awstats
|
||||
$(MAKE) install-slave DESTDIR=$(CURDIR)/debian/alternc-slave
|
||||
$(MAKE) install-api DESTDIR=$(CURDIR)/debian/alternc-api
|
||||
$(MAKE) -C ssl install DESTDIR=$(CURDIR)/debian/alternc-ssl
|
||||
|
||||
override_dh_fixperms:
|
||||
dh_fixperms
|
||||
|
|
Loading…
Reference in New Issue