web directory
This commit is contained in:
parent
7908b831c6
commit
ab992fffd5
|
@ -8849,7 +8849,8 @@ function install_webmail {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
WEBMAIL_PATH=/var/www/webmail
|
WEB_PATH=/var/www
|
||||||
|
WEBMAIL_PATH=$WEB_PATH/webmail
|
||||||
|
|
||||||
# update to a new commit if needed
|
# update to a new commit if needed
|
||||||
set_repo_commit $WEBMAIL_PATH "Webmail commit" "$WEBMAIL_COMMIT" $WEBMAIL_REPO
|
set_repo_commit $WEBMAIL_PATH "Webmail commit" "$WEBMAIL_COMMIT" $WEBMAIL_REPO
|
||||||
|
@ -8870,8 +8871,7 @@ function install_webmail {
|
||||||
apt-get -y install php5-dev imagemagick php5-imagick
|
apt-get -y install php5-dev imagemagick php5-imagick
|
||||||
|
|
||||||
if [ ! -f $WEBMAIL_PATH/index.php ]; then
|
if [ ! -f $WEBMAIL_PATH/index.php ]; then
|
||||||
cd $WEBMAIL_PATH
|
cd $WEB_PATH
|
||||||
cd ..
|
|
||||||
git_clone $WEBMAIL_REPO webmail
|
git_clone $WEBMAIL_REPO webmail
|
||||||
cd $WEBMAIL_PATH
|
cd $WEBMAIL_PATH
|
||||||
git checkout $WEBMAIL_COMMIT -b $WEBMAIL_COMMIT
|
git checkout $WEBMAIL_COMMIT -b $WEBMAIL_COMMIT
|
||||||
|
@ -8882,6 +8882,10 @@ function install_webmail {
|
||||||
fi
|
fi
|
||||||
chown -R www-data:www-data $WEBMAIL_PATH
|
chown -R www-data:www-data $WEBMAIL_PATH
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f $WEBMAIL_PATH/index.php ]; then
|
||||||
|
echo $'Did not clone webmail repo'
|
||||||
|
exit 52825
|
||||||
|
fi
|
||||||
|
|
||||||
WEBMAIL_ONION_HOSTNAME=
|
WEBMAIL_ONION_HOSTNAME=
|
||||||
if [[ $ONION_ONLY != "no" ]]; then
|
if [[ $ONION_ONLY != "no" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue