Harry Cameron

1

votes
0

answer
809

views

Curl(28): Timeout was reached

On attempting to upload some files to my web server using this script #!/bin/bash gitLastCommit=$(git show --summary --grep='Merge pull request') if [[ -z '$gitLastCommit' ]] then lastCommit=$(git log --format='%H' -n 1) else echo 'We got a Merge Request!' arr=($gitLastCommit) lastCommit=${arr[4]} f...
Harry Cameron
1

votes
1

answer
34

views

Assigning certain commands to users

I want to only allow the 'git' userto be able to run git commands, I edited my sudoers file using sudo visudo and added # Cmnd alias specification Cmnd_Alias GIT_CMDS = /usr/bin/git # User privilege specification root ALL=(ALL:ALL) ALL git ALL=(ALL) NOPASSWD: GIT_CMDS When I then try to run git...
Harry Cameron
1

votes
2

answer
91

views

“Test” Branch on GitHub Repo

On my webserver I currently have a Virtual Host, with an almost exact copy of my main public website, set up for testing purposes so I can edit my website and test new features without editing my live website. It has a simple .htaccess and .htpasswd authentication using AuthType Basic AuthName 'Res...
Harry Cameron
1

votes
1

answer
35

views

Travis yml error

I am trying to set up my travis.yml file so that by default if the branch is not master the files get uploaded to /var/www/test but if the branch is master they get uploaded to /var/www/html. I've seen that using conditionals in the .yml file is possible, reference this post in the Travis Docs. I ha...
Harry Cameron
1

votes
1

answer
337

views

MySQL NOW() Syntax error

I have some software called phpVMS installed on my webserver and we are running software called SmartCARS which tracks a plane on a flight simulator and sends the data to the phpVMS software. At the end of the flight a PIREP is filed but for some reason I get an error with MySQL syntax. This is the...
Harry Cameron