Commit ec20fdb6 authored by Paul Cammish's avatar Paul Cammish
Browse files

Improved flow when gnupg is not installed

parent 8390b811
......@@ -61,19 +61,19 @@ if ! hostname --fqdn > /dev/null 2>&1 ; then
exit 1
fi
echo "Installing Sympl from '$version' repository."
echo "Installing initial dependencies..."
apt -yqq update
if [ "x$(which debconf-set-selections)" = "x" ]; then
echo Installing debconf to set defaults...
apt-get -qq update
apt-get -qq -y install debconf
apt-get -qq -y install debconf gnupg
if [ "x$(which debconf-set-selections)" = "x" ]; then
echo "Unable to set defaults, you will need to install manually, sorry."
exit 0
else
echo "OK"
echo "ERROR: Unable to set defaults, you will need to install manually, sorry."
exit 1
fi
fi
echo "Installing Sympl from '$version' repository."
echo "Setting defaults..."
echo "phpmyadmin phpmyadmin/reconfigure-webserver select apache2" | debconf-set-selections
echo "roundcube-core roundcube/dbconfig-install boolean true" | debconf-set-selections
echo "roundcube-core roundcube/database-type select mysql" | debconf-set-selections
......@@ -93,10 +93,6 @@ echo -n "Adding repository to apt..."
echo "deb http://packages.mythic-beasts.com/mythic/ $version main" > "/etc/apt/sources.list.d/sympl_$codename.list"
echo "OK"
echo -n "Updating apt..."
apt -yqq update
echo "OK"
echo "Installing Sympl..."
if [ $noninteractive == 0 ]; then
echo "Starting in 5 seconds - Ctrl-C to cancel!"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment