Create data directory if it do not exits while restore

This commit is contained in:
anmol 2018-11-22 01:52:42 +05:30
parent 0c6e247773
commit fa0cafeb98
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ ynh_system_user_create "$app"
#=================================================
# Set right permissions
if [ ! -d "/home/yunohost.app/$app" ]; then
mkdir -p "/home/yunohost.app/${app}/storage"
fi
chown -R "$app":"$app" "/home/yunohost.app/${app}/storage"
#=================================================