$conf['savedir'] = '/app/www/public/data';
====== Shell tricks ======
{{tag>shell linux tricks}}
===== Sudo privilege escalation =====
if [ "$(id -u)" != 0]; then
sudo "$0" "$*"
exit $?
fi
===== Posix Documentation =====
[[https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html]]
==== Parameter expansion ====
[[https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02 | Section 2.6.2 of the documentation]]\\
Expansion can differ depending on parameter value and set status and possibly assign.
Substitution can also provide string length and prefix/suffix patterns.
===== Useful templates =====
==== 7zip compression ====
7z a -t7z [OUTPUT FILE].7z -m0=lzma2 -mx=9 [INPUT FILE]