updates to pkgr-postinstall.sh & README_Install_Debian_Ubuntu.md (#309)

updates to pkgr-postinstall.sh & README_Install_Debian_Ubuntu.md
This commit is contained in:
André Bauer 2016-10-26 12:44:37 +02:00 committed by GitHub
parent 94ea44d519
commit 8bd06911fe
2 changed files with 6 additions and 7 deletions

View file

@ -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

View file

@ -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