1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minetest_ynh.git synced 2024-09-03 20:36:00 +02:00

Merge pull request #11 from YunoHost-Apps/simplify-mkdir

Simplify install script, just use mkdir -p
This commit is contained in:
Rafi59 2020-07-23 21:44:03 +02:00 committed by GitHub
commit 46ee7ed108
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,14 +128,7 @@ ynh_system_user_create --username=$app --home_dir=$home_path --use_shell
# COPY CONFIG FILE # COPY CONFIG FILE
#================================================= #=================================================
if [ -e $home_path ] mkdir -p $home_path/.minetest/worlds/
then
echo "Nothing to do..."
else
mkdir -p $home_path/.minetest/
mkdir $home_path/.minetest/worlds/
fi
cp -a ../conf/minetest.conf $home_path/.minetest/ cp -a ../conf/minetest.conf $home_path/.minetest/
#================================================= #=================================================
@ -192,13 +185,7 @@ ynh_replace_string --match_string="__DAMAGE__" --replace_string="$damage" --targ
# CREATE WORLD # CREATE WORLD
#================================================= #=================================================
# Create logs dir mkdir -p /var/log/$app
if [ -e /var/log/$app ]
then
echo "Nothing to do..."
else
mkdir /var/log/$app
fi
# Set permissions on logs # Set permissions on logs
chown -R $app:$app /var/log/$app chown -R $app:$app /var/log/$app