Commit 41036424 authored by Daniel's avatar Daniel

Update overlay/root/, overlay/root/scripts/,...

Update overlay/root/, overlay/root/scripts/, overlay/root/scripts/, overlay/root/scripts/ files
parent a9eb0707
......@@ -28,6 +28,3 @@ else
find /root/ -type f -iname "*.sh" -print0 | xargs -0 chmod +x
......@@ -62,8 +62,20 @@ fi
# create occ helper script
cat > ${file_occ_script} <<EOF
# create an array including all commands
cmd_arr="php ${dir_nextcloud}/occ"
# shortcut for the occ command for quick editing
su -m ${WWW_USER} -c "php ${dir_nextcloud}/occ \$*"
# enclose all commands into '' which prevents errors
# with commands that include spaces
while [ -n "$1" ];
cmd_arr="${cmd_arr} '$1'"
echo "running: ${cmd_arr}"
# run the command as webuser in script mode
su -m ${WWW_USER} -c "${cmd_arr}"
chmod +x ${file_occ_script}
......@@ -69,9 +69,8 @@ chmod 640 ${file_nc_log}
occ config:system:set log_type --value "file"
occ config:system:set logfile. --value "${file_nc_log}"
occ config:system:set logfilemode --value "0640"
occ config:system:set loglevel --value 3
occ config:system:set logdateformat --value "F d, Y H:i:s"
occ config:system:set loglevel --value 0
occ config:system:set logdateformat --value '"F d, Y H:i:s"'
echo; echo "nextcloud: setup cronjob"
......@@ -53,3 +53,5 @@ conf_update -c ${file_php_conf} -o "output_buffering" -v "0"
conf_update -c ${file_php_conf} -o "upload_tmp_dir" -v "/var/big_temp_file/"
mkdir -p /var/big_temp_file
chown $WWW_USER /var/big_temp_file
# disable chunking of file
occ config:app:set files max_chunk_size --value 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment