1 (edited by Prodigy 2015-05-08 15:23:08)

Topic: Directory is not a symbol link created by iRedMail

==== Required information ====
- iRedMail version: iRedMail-0.9.1-beta1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): nginx
- Linux/BSD distribution name and version: Ubuntu 14.04 LTS
- Related log if you're reporting an issue:
====

Running bash upgrade_iredadmin.sh failed with error

# bash upgrade_iredadmin.sh 
* Detected Linux/BSD distribution: UBUNTU
<<< ERROR >>> Directory is not a symbol link created by iRedMail. Exit 

Changing this :

 elif [ -f /etc/lsb-release ]; then
        # Ubuntu
        export DISTRO='UBUNTU'
        export HTTPD_SERVERROOT='/opt/www'
        export HTTPD_RC_SCRIPT_NAME='apache2'

seems to works, i don't know it's proper or not.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Directory is not a symbol link created by iRedMail

Thanks for the feedback. it was fixed days ago (after iRedMail-0.9.1-beta1):

    elif [ -f /etc/lsb-release ]; then
        # Ubuntu
        export DISTRO='UBUNTU'
        if [ -d '/opt/www' ]; then
            export HTTPD_SERVERROOT='/opt/www'
        else
            export HTTPD_SERVERROOT='/usr/share/apache2'
        fi