diff options
| author | Miquel Sabaté <mikisabate@gmail.com> | 2012-12-08 19:37:28 +0100 |
|---|---|---|
| committer | Miquel Sabaté <mikisabate@gmail.com> | 2012-12-08 19:37:28 +0100 |
| commit | fc33369033454d135f332fec37e6b2fbe1b537a3 (patch) | |
| tree | c297a80682e92fada3de4eded11277d2b0c2c5f0 /nginx_unicorn/nginxman.sh | |
| parent | b98caf5f64eafbfbe87d37b9fb334a1624c495bd (diff) | |
| download | dotfiles-fc33369033454d135f332fec37e6b2fbe1b537a3.tar.gz dotfiles-fc33369033454d135f332fec37e6b2fbe1b537a3.zip | |
Added a pretty standard Systemd .service file for our custom NGinx installation
Diffstat (limited to 'nginx_unicorn/nginxman.sh')
| -rwxr-xr-x | nginx_unicorn/nginxman.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nginx_unicorn/nginxman.sh b/nginx_unicorn/nginxman.sh index 8e47455..acf8af6 100755 --- a/nginx_unicorn/nginxman.sh +++ b/nginx_unicorn/nginxman.sh @@ -6,6 +6,7 @@ _tmpdir=/var/lib/nginx _nginx=/tmp/nginx _version="trunk" _configure="./configure" +_pwd=`pwd` # Fetch and extract NGinx @@ -58,6 +59,8 @@ echo -e "\033[32mCompiling\033[0m" make -j 4 echo -e "\033[32mInstalling\033[0m" sudo make install +sudo cp $_pwd/nginx.service /usr/lib/systemd/system/nginx.service +sudo mkdir -p /var/lib/nginx # Cleanup echo -e "\033[32mCleaning up\033[0m" |
