[enh] Do not install extra packages and configurations on unstable

This commit is contained in:
kload 2015-10-02 07:25:24 -04:00
parent 3be443a2ca
commit 6ed01f443d

View file

@ -103,11 +103,12 @@ installscript_dependencies() {
} }
create_custom_config() { create_custom_config() {
if [[ ! -f /etc/yunohost/yunohost.conf ]] if [[ "$DISTRIB" != "daily" ]] && [[ "$DISTRIB" != "unstable" ]] ; then
then if [[ ! -f /etc/yunohost/yunohost.conf ]]
mkdir /etc/yunohost/ then
touch /etc/yunohost/from_script mkdir -p /etc/yunohost/
cat << EOF > /etc/yunohost/yunohost.conf touch /etc/yunohost/from_script
cat << EOF > /etc/yunohost/yunohost.conf
# Yunohost custom config # Yunohost custom config
# If you want to keep a custom service configuration replace "no" by "yes" # If you want to keep a custom service configuration replace "no" by "yes"
# for the concerned service # for the concerned service
@ -124,6 +125,10 @@ slapd=no
ssh=yes ssh=yes
ssowat=no ssowat=no
EOF EOF
fi
else
mkdir -p /etc/yunohost/
touch /etc/yunohost/from_script
fi fi
} }
@ -263,13 +268,22 @@ workaround_avahi_installation() {
} }
install_yunohost_packages() { install_yunohost_packages() {
apt_get_wrapper \ if [[ "$DISTRIB" != "daily" ]] && [[ "$DISTRIB" != "unstable" ]] ; then
-o Dpkg::Options::="--force-confold" \ apt_get_wrapper \
-y --force-yes install \ -o Dpkg::Options::="--force-confold" \
yunohost yunohost-config \ -y --force-yes install \
yunohost-config-postfix \ yunohost yunohost-config \
postfix postfix-ldap \ yunohost-config-postfix \
postfix-policyd-spf-perl postfix postfix-ldap \
postfix-policyd-spf-perl
else
apt_get_wrapper \
-o Dpkg::Options::="--force-confold" \
-y --force-yes install \
yunohost \
postfix postfix-ldap \
postfix-policyd-spf-perl
fi
} }
restart_services() { restart_services() {