Sorry, I typo'd that command in my post. The actual command I am running does have "deploy" in it.
I created a little script to "automate" the update process.
#!/bin/bash
cd osTicket
# Update files from git repository
#git checkout 1.16.x
#git checkout 1.17.x
git checkout 1.18.x
git pull
git fetch
git merge
# Push updates to install folder
php manage.php deploy -v /var/www/html/osTicket/
If I run the commands manually this is the result.
root@osticket:~# cd osTicket/
root@osticket:~/osTicket# git checkout 1.18.x
Already on '1.18.x'
Your branch is up to date with 'origin/1.18.x'.
root@osticket:~/osTicket# git pull
Already up to date.
root@osticket:~/osTicket# git fetch
root@osticket:~/osTicket# git merge
Already up to date.
root@osticket:~/osTicket# php manage.php deploy -v /var/www/html/osTicket/
PHP Fatal error: Uncaught Error: Class "osTicket" not found in /root/osTicket/manage.php:23
Stack trace:
#0 {main}
thrown in /root/osTicket/manage.php on line 23
This method has always worked in the past, even when moving from branch to branch.
Also, looking at my manage.php file VS the one on github, they look identical. The call the the osTicket class is on line 23. https://github.com/osTicket/osTicket/blob/1.18.x/manage.php