yunohost-admin/debian/postinst
2015-05-02 05:48:08 -04:00

13 lines
307 B
Bash

#!/bin/bash
if [ ! -f /usr/share/yunohost/admin/ca.crt ];
then
ln -s /etc/ssl/certs/ca-yunohost_crt.pem /usr/share/yunohost/admin/ca.crt
fi
chown -R www-data: /usr/share/yunohost/admin
if [ $(lsb_release -c | awk '{print $2}') = jessie ];
then
service yunohost-api stop
fi
service yunohost-api restart