Fix make_osticket.

master
Ian Walton 3 years ago
parent d7c6153df7
commit ec2331f0b7

@ -8,12 +8,13 @@ start "$ctname"
cat > tmp_setup_osticket << 'EOF'
#!/bin/bash
apt update
apt -y install curl wget mysql-server apache2 libapache2-mod-php unzip php7.0-mysql php7.0-imap php7.0-gd php7.0-xml php7.0-mbstring php7.0-intl php7.0-apcu bsdmainutils
apt -y install curl wget mariadb-server apache2 libapache2-mod-php unzip php7.3-mysql php7.3-imap php7.3-gd php7.3-xml php7.3-mbstring php7.3-intl php7.3-apcu bsdmainutils
cd /var/www/html
osticketdl=$(curl -k 'https://osticket.com/wp-admin/admin-ajax.php' -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36' -H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' --data 'dType=core&ostCustomCore=osTicket-v1.11.zip&action=zipfiles')
osticketdl=$(curl 'https://osticket.com/wp-admin/admin-ajax.php' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://osticket.com/download/' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'X-Requested-With: XMLHttpRequest' -H 'DNT: 1' -H 'Connection: keep-alive' --data 'dType=core&ostCustomCore=osTicket-v1.14.1.zip&action=zipfiles' -k)
wget -O osticket.zip "$osticketdl"
unzip osticket.zip
rm osticket.zip index.html
unzip osTicket-v1.14.1.zip
rm osticket.zip index.html osTicket-v1.14.1.zip
mv upload/* ./
chown -R www-data .
chmod -R u+rwX,go+rX,go-w .

Loading…
Cancel
Save