From 8bd06911fed5aeeec2ae5db026fedd63f77ea44c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Wed, 26 Oct 2016 12:44:37 +0200 Subject: [PATCH] updates to pkgr-postinstall.sh & README_Install_Debian_Ubuntu.md (#309) updates to pkgr-postinstall.sh & README_Install_Debian_Ubuntu.md --- README_Install_Debian_Ubuntu.md | 5 ++--- contrib/pkgr-postinstall.sh | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README_Install_Debian_Ubuntu.md b/README_Install_Debian_Ubuntu.md index 75c3c9daf..9e037dfef 100644 --- a/README_Install_Debian_Ubuntu.md +++ b/README_Install_Debian_Ubuntu.md @@ -8,9 +8,8 @@ * useradd zammad -m -d /opt/zammad -s /bin/bash * echo "export RAILS_ENV=production" >> /opt/zammad/.bashrc -### Create MySQL User zammad +### Create MySQL User zammad (for Debian: upgrade MySQL to v5.6+ before, see: http://dev.mysql.com/downloads/repo/apt/) * mysql --defaults-extra-file=/etc/mysql/debian.cnf -e "CREATE USER 'zammad'@'localhost' IDENTIFIED BY 'Your_Pass_Word!'; GRANT ALL PRIVILEGES ON zammad_prod.* TO 'zammad'@'localhost'; FLUSH PRIVILEGES;" -* for Debian: need upgrade MySQL to v5.6+, see: http://dev.mysql.com/downloads/repo/apt/ ### Get Zammad * su zammad @@ -22,7 +21,7 @@ ### Create Nginx Config * cp /opt/zammad/contrib/nginx/sites-available/zammad.conf /etc/nginx/sites-available/zammad.conf * vi /etc/nginx/sites-available/zammad.conf - * change "zammad.example.com" to your domain + * change servername "localhost" to your domain if your're not testing localy * ln -s /etc/nginx/sites-available/zammad.conf /etc/nginx/sites-enabled/zammad.conf ### Install Environnment diff --git a/contrib/pkgr-postinstall.sh b/contrib/pkgr-postinstall.sh index 1487df3fe..83e6b4e1a 100755 --- a/contrib/pkgr-postinstall.sh +++ b/contrib/pkgr-postinstall.sh @@ -58,17 +58,17 @@ if [ -d /etc/nginx/sites-enabled ]; then # copy nginx config test -f /etc/nginx/sites-available/zammad.conf || cp ${ZAMMAD_DIR}/contrib/nginx/sites-available/zammad.conf /etc/nginx/sites-available/zammad.conf - if [ ! -f /etc/nginx/sites-available/zammad.conf ] + if [ ! -f /etc/nginx/sites-available/zammad.conf ]; then # creating symlink ln -s /etc/nginx/sites-available/zammad.conf /etc/nginx/sites-enabled/zammad.conf - # show message - echo -e "\nOpen http://localhost in your browser to start or add your FQDN to servername directive in /etc/nginx/sites/enabled/zammad.conf if you're not testing localy!\n" + echo -e "\nAdd your FQDN to servername directive in /etc/nginx/sites/enabled/zammad.conf anmd restart nginx if you're not testing localy!\n" fi + echo -e "\nOpen http://localhost in your browser to start!\n" + # restart nginx systemctl restart nginx else - # show message echo -e "\nOpen http://localhost:3000 in your browser to start!\n" fi