summarylogtreecommitdiffstats
path: root/avantfax.install
diff options
context:
space:
mode:
authorChris Severance2017-05-19 20:32:33 -0400
committerChris Severance2017-05-19 20:32:33 -0400
commitc151dfe39676236a847dab2a74bbab4187cdd893 (patch)
treea3087415b6a9c7923b952356c8174b71d601d45d /avantfax.install
parente73391e0d1b8b366ce5156c62a5a47d6a1909c09 (diff)
downloadaur-c151dfe39676236a847dab2a74bbab4187cdd893.tar.gz
Downgrade php stopped working. Switch to php56
Diffstat (limited to 'avantfax.install')
-rw-r--r--avantfax.install6
1 files changed, 3 insertions, 3 deletions
diff --git a/avantfax.install b/avantfax.install
index e75093fb7db7..92e00505f0ed 100644
--- a/avantfax.install
+++ b/avantfax.install
@@ -36,7 +36,7 @@ post_install() {
set -u
_start_systemd
avantfaxsetup.sh 1 'build' 'pre' 'post'
- _opt_SOURCEONLY=1; . 'avantfaxsetup.sh'; unset _opt_SOURCEONLY
+ local _opt_SOURCEONLY=1; . 'avantfaxsetup.sh'; unset _opt_SOURCEONLY
_httpinclude="Include conf/extra/httpd-${_opt_AVANTFAX_SERVERNAME}.conf"
_httpconf='/etc/httpd/conf/httpd.conf'
if ! grep "${_httpinclude}"'$' "${_httpconf}" &>/dev/null; then
@@ -57,7 +57,7 @@ pre_remove() {
systemctl disable 'avantfax.phb.timer'
systemctl stop 'avantfax.cron.timer'
systemctl disable 'avantfax.cron.timer'
- _opt_SOURCEONLY=1; . 'avantfaxsetup.sh'; unset _opt_SOURCEONLY
+ local _opt_SOURCEONLY=1; . 'avantfaxsetup.sh'; unset _opt_SOURCEONLY
_httpinclude="Include conf/extra/httpd-${_opt_AVANTFAX_SERVERNAME}.conf"
_httpconf='/etc/httpd/conf/httpd.conf'
_conftemp='/tmp/avantfax.httpd.conf'
@@ -77,7 +77,7 @@ post_remove() {
set -u
systemctl daemon-reload
/tmp/avantfaxsetup.sh 0 'postun'
- _opt_SOURCEONLY=1; . '/tmp/avantfaxsetup.sh'; unset _opt_SOURCEONLY
+ local _opt_SOURCEONLY=1; . '/tmp/avantfaxsetup.sh'; unset _opt_SOURCEONLY
# This completely removes your config. Not everyone may want this.
rm -rf "/usr/share/webapps/${_opt_AVANTFAX_SERVERNAME}" '/root/avantfaxbackup'
rm -f '/tmp/avantfaxsetup.sh'{,.password} '/usr/bin/avantfaxsetup.sh.password'