|
@@ -242,7 +242,7 @@ function restore_local_friendica {
|
242
|
242
|
if [ ! -d $friendica_dir/store/[data]/smarty3 ]; then
|
243
|
243
|
mkdir -p $friendica_dir/store/[data]/smarty3
|
244
|
244
|
fi
|
245
|
|
- chmod 777 $friendica_dir/store/[data]/smarty3
|
|
245
|
+ chmod 1777 $friendica_dir/store/[data]/smarty3
|
246
|
246
|
chown -R www-data:www-data $friendica_dir/*
|
247
|
247
|
if [ -d $temp_restore_dir ]; then
|
248
|
248
|
rm -rf $temp_restore_dir
|
|
@@ -276,7 +276,7 @@ function restore_remote_friendica {
|
276
|
276
|
if [ ! -d /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/store/[data]/smarty3 ]; then
|
277
|
277
|
mkdir -p /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/store/[data]/smarty3
|
278
|
278
|
fi
|
279
|
|
- chmod 777 /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/store/[data]/smarty3
|
|
279
|
+ chmod 1777 /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/store/[data]/smarty3
|
280
|
280
|
chown -R www-data:www-data /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/*
|
281
|
281
|
fi
|
282
|
282
|
if [ -d /root/tempfriendica ]; then
|
|
@@ -531,11 +531,11 @@ function install_friendica {
|
531
|
531
|
fi
|
532
|
532
|
if [ ! -d "$FRIENDICA_PATH/store/[data]/smarty3" ]; then
|
533
|
533
|
mkdir "$FRIENDICA_PATH/store/[data]/smarty3"
|
534
|
|
- chmod 777 "$FRIENDICA_PATH/store/[data]/smarty3"
|
|
534
|
+ chmod 1777 "$FRIENDICA_PATH/store/[data]/smarty3"
|
535
|
535
|
fi
|
536
|
|
- chmod 777 $FRIENDICA_PATH/view/tpl
|
|
536
|
+ chmod 1777 $FRIENDICA_PATH/view/tpl
|
537
|
537
|
chown -R www-data:www-data "$FRIENDICA_PATH/store"
|
538
|
|
- chmod 777 $FRIENDICA_PATH/view/tpl/smarty3
|
|
538
|
+ chmod 1777 $FRIENDICA_PATH/view/tpl/smarty3
|
539
|
539
|
|
540
|
540
|
# Ensure that the database gets backed up locally, if remote
|
541
|
541
|
# backups are not being used
|