Set sticky bits on public directories
This commit is contained in:
parent
39c126cba5
commit
87a7144ae3
|
@ -242,7 +242,7 @@ function restore_local_friendica {
|
|||
if [ ! -d $friendica_dir/store/[data]/smarty3 ]; then
|
||||
mkdir -p $friendica_dir/store/[data]/smarty3
|
||||
fi
|
||||
chmod 777 $friendica_dir/store/[data]/smarty3
|
||||
chmod 1777 $friendica_dir/store/[data]/smarty3
|
||||
chown -R www-data:www-data $friendica_dir/*
|
||||
if [ -d $temp_restore_dir ]; then
|
||||
rm -rf $temp_restore_dir
|
||||
|
@ -276,7 +276,7 @@ function restore_remote_friendica {
|
|||
if [ ! -d /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/store/[data]/smarty3 ]; then
|
||||
mkdir -p /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/store/[data]/smarty3
|
||||
fi
|
||||
chmod 777 /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/store/[data]/smarty3
|
||||
chmod 1777 /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/store/[data]/smarty3
|
||||
chown -R www-data:www-data /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/*
|
||||
fi
|
||||
if [ -d /root/tempfriendica ]; then
|
||||
|
@ -531,11 +531,11 @@ function install_friendica {
|
|||
fi
|
||||
if [ ! -d "$FRIENDICA_PATH/store/[data]/smarty3" ]; then
|
||||
mkdir "$FRIENDICA_PATH/store/[data]/smarty3"
|
||||
chmod 777 "$FRIENDICA_PATH/store/[data]/smarty3"
|
||||
chmod 1777 "$FRIENDICA_PATH/store/[data]/smarty3"
|
||||
fi
|
||||
chmod 777 $FRIENDICA_PATH/view/tpl
|
||||
chmod 1777 $FRIENDICA_PATH/view/tpl
|
||||
chown -R www-data:www-data "$FRIENDICA_PATH/store"
|
||||
chmod 777 $FRIENDICA_PATH/view/tpl/smarty3
|
||||
chmod 1777 $FRIENDICA_PATH/view/tpl/smarty3
|
||||
|
||||
# Ensure that the database gets backed up locally, if remote
|
||||
# backups are not being used
|
||||
|
|
|
@ -233,7 +233,7 @@ function restore_local_hubzilla {
|
|||
if [ ! -d $hubzilla_dir/store/[data]/smarty3 ]; then
|
||||
mkdir -p $hubzilla_dir/store/[data]/smarty3
|
||||
fi
|
||||
chmod 777 $hubzilla_dir/store/[data]/smarty3
|
||||
chmod 1777 $hubzilla_dir/store/[data]/smarty3
|
||||
chown -R www-data:www-data $hubzilla_dir/*
|
||||
if [ -d $temp_restore_dir ]; then
|
||||
rm -rf $temp_restore_dir
|
||||
|
@ -267,7 +267,7 @@ function restore_remote_hubzilla {
|
|||
if [ ! -d /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/store/[data]/smarty3 ]; then
|
||||
mkdir -p /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/store/[data]/smarty3
|
||||
fi
|
||||
chmod 777 /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/store/[data]/smarty3
|
||||
chmod 1777 /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/store/[data]/smarty3
|
||||
chown -R www-data:www-data /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/*
|
||||
fi
|
||||
if [ -d /root/temphubzilla ]; then
|
||||
|
@ -526,11 +526,11 @@ function install_hubzilla {
|
|||
fi
|
||||
if [ ! -d "$HUBZILLA_PATH/store/[data]/smarty3" ]; then
|
||||
mkdir "$HUBZILLA_PATH/store/[data]/smarty3"
|
||||
chmod 777 "$HUBZILLA_PATH/store/[data]/smarty3"
|
||||
chmod 1777 "$HUBZILLA_PATH/store/[data]/smarty3"
|
||||
fi
|
||||
chmod 777 $HUBZILLA_PATH/view/tpl
|
||||
chmod 1777 $HUBZILLA_PATH/view/tpl
|
||||
chown -R www-data:www-data "$HUBZILLA_PATH/store"
|
||||
chmod 777 $HUBZILLA_PATH/view/tpl/smarty3
|
||||
chmod 1777 $HUBZILLA_PATH/view/tpl/smarty3
|
||||
|
||||
# Ensure that the database gets backed up locally, if remote
|
||||
# backups are not being used
|
||||
|
|
|
@ -404,8 +404,8 @@ function install_lychee {
|
|||
function_check configure_php
|
||||
configure_php
|
||||
|
||||
chmod -R 777 /var/www/$LYCHEE_DOMAIN_NAME/htdocs/uploads/
|
||||
chmod -R 777 /var/www/$LYCHEE_DOMAIN_NAME/htdocs/data/
|
||||
chmod -R 1777 /var/www/$LYCHEE_DOMAIN_NAME/htdocs/uploads/
|
||||
chmod -R 1777 /var/www/$LYCHEE_DOMAIN_NAME/htdocs/data/
|
||||
chown -R www-data:www-data /var/www/$LYCHEE_DOMAIN_NAME/htdocs
|
||||
|
||||
chmod 755 /var/www/$LYCHEE_DOMAIN_NAME/htdocs/uploads/big/index.html
|
||||
|
|
|
@ -531,7 +531,7 @@ function install_postactiv_main {
|
|||
chmod a+w /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/file
|
||||
chown -R www-data:www-data /var/www/$POSTACTIV_DOMAIN_NAME/htdocs
|
||||
chmod +x /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/scripts/maildaemon.php
|
||||
chmod 777 /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/extlib/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php
|
||||
chmod 1777 /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/extlib/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php
|
||||
|
||||
function_check postactiv_create_database
|
||||
postactiv_create_database
|
||||
|
|
Loading…
Reference in New Issue