mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
25 lines
530 B
Text
25 lines
530 B
Text
set -e
|
|
|
|
force=$1
|
|
|
|
cd /usr/share/yunohost/templates/yunohost
|
|
|
|
sudo mkdir -p /etc/yunohost
|
|
|
|
if [ ! -f /etc/yunohost/current_host ]; then
|
|
echo "yunohost.org" | sudo tee /etc/yunohost/current_host
|
|
fi
|
|
|
|
if [ ! -f /etc/yunohost/firewall.yml ]; then
|
|
sudo cp firewall.yml /etc/yunohost/firewall.yml
|
|
fi
|
|
|
|
if [ ! -f /etc/yunohost/services.yml ]; then
|
|
sudo cp services.yml /etc/yunohost/services.yml
|
|
fi
|
|
|
|
# Allow users to access /media directory
|
|
if [ ! -d /etc/skel/media ]; then
|
|
mkdir -p /media
|
|
ln -s /media /etc/skel/
|
|
fi
|