mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Indent postinst script uniformly
This commit is contained in:
parent
f8eced728c
commit
cb557c1a21
1 changed files with 5 additions and 5 deletions
10
debian/postinst
vendored
10
debian/postinst
vendored
|
@ -4,21 +4,21 @@ TMP=/usr/share/yunohost/yunohost-config/moulinette
|
||||||
|
|
||||||
if [ ! -d /etc/yunohost ];
|
if [ ! -d /etc/yunohost ];
|
||||||
then
|
then
|
||||||
mkdir -p /etc/yunohost
|
mkdir -p /etc/yunohost
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Allow users to access /media directory
|
# Allow users to access /media directory
|
||||||
if [ ! -d /etc/skel/media ];
|
if [ ! -d /etc/skel/media ];
|
||||||
then
|
then
|
||||||
mkdir -p /media
|
mkdir -p /media
|
||||||
ln -s /media /etc/skel/
|
ln -s /media /etc/skel/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Firewall
|
#Firewall
|
||||||
grep -q "UPNP:" /etc/yunohost/firewall.yml > /dev/null 2>&1
|
grep -q "UPNP:" /etc/yunohost/firewall.yml > /dev/null 2>&1
|
||||||
if [[ $? -eq 0 ]] || [ ! -f /etc/yunohost/firewall.yml ];
|
if [[ $? -eq 0 ]] || [ ! -f /etc/yunohost/firewall.yml ];
|
||||||
then
|
then
|
||||||
cp $TMP/firewall.yml /etc/yunohost/
|
cp $TMP/firewall.yml /etc/yunohost/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# App fetchlist
|
# App fetchlist
|
||||||
|
@ -30,7 +30,7 @@ fi
|
||||||
# Service list
|
# Service list
|
||||||
if [ ! -f /etc/yunohost/services.yml ];
|
if [ ! -f /etc/yunohost/services.yml ];
|
||||||
then
|
then
|
||||||
cp $TMP/services.yml /etc/yunohost/
|
cp $TMP/services.yml /etc/yunohost/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Stop old API
|
# Stop old API
|
||||||
|
|
Loading…
Add table
Reference in a new issue