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:
commit
46ee7ed108
1 changed files with 2 additions and 15 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue