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:
parent
94ea44d519
commit
8bd06911fe
2 changed files with 6 additions and 7 deletions
|
@ -8,9 +8,8 @@
|
||||||
* useradd zammad -m -d /opt/zammad -s /bin/bash
|
* useradd zammad -m -d /opt/zammad -s /bin/bash
|
||||||
* echo "export RAILS_ENV=production" >> /opt/zammad/.bashrc
|
* 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;"
|
* 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
|
### Get Zammad
|
||||||
* su zammad
|
* su zammad
|
||||||
|
@ -22,7 +21,7 @@
|
||||||
### Create Nginx Config
|
### Create Nginx Config
|
||||||
* cp /opt/zammad/contrib/nginx/sites-available/zammad.conf /etc/nginx/sites-available/zammad.conf
|
* cp /opt/zammad/contrib/nginx/sites-available/zammad.conf /etc/nginx/sites-available/zammad.conf
|
||||||
* vi /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
|
* ln -s /etc/nginx/sites-available/zammad.conf /etc/nginx/sites-enabled/zammad.conf
|
||||||
|
|
||||||
### Install Environnment
|
### Install Environnment
|
||||||
|
|
|
@ -58,17 +58,17 @@ if [ -d /etc/nginx/sites-enabled ]; then
|
||||||
# copy nginx config
|
# 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
|
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
|
# creating symlink
|
||||||
ln -s /etc/nginx/sites-available/zammad.conf /etc/nginx/sites-enabled/zammad.conf
|
ln -s /etc/nginx/sites-available/zammad.conf /etc/nginx/sites-enabled/zammad.conf
|
||||||
|
|
||||||
# show message
|
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"
|
||||||
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"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo -e "\nOpen http://localhost in your browser to start!\n"
|
||||||
|
|
||||||
# restart nginx
|
# restart nginx
|
||||||
systemctl restart nginx
|
systemctl restart nginx
|
||||||
else
|
else
|
||||||
# show message
|
|
||||||
echo -e "\nOpen http://localhost:3000 in your browser to start!\n"
|
echo -e "\nOpen http://localhost:3000 in your browser to start!\n"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue