Create data directory if it do not exits while restore
This commit is contained in:
parent
0c6e247773
commit
fa0cafeb98
|
@ -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"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in New Issue