diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2019-01-09 17:20:22 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2019-01-09 17:20:22 -0200 |
commit | 999da92c374f2bd88dac0807cf019335e127dc0f (patch) | |
tree | 81f9e9490ed82e9de0280a8db1bcc84d2a7fd38e /share | |
parent | dbedd8e7baddd7e2efe4b28fd163b7e1d91e4c13 (diff) | |
download | trashman-999da92c374f2bd88dac0807cf019335e127dc0f.tar.gz trashman-999da92c374f2bd88dac0807cf019335e127dc0f.tar.bz2 |
Adapt helpy to trashman way
Diffstat (limited to 'share')
-rwxr-xr-x | share/trashman/helpy/unix/linux/debian/install | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/share/trashman/helpy/unix/linux/debian/install b/share/trashman/helpy/unix/linux/debian/install index 17028cc..4430f4b 100755 --- a/share/trashman/helpy/unix/linux/debian/install +++ b/share/trashman/helpy/unix/linux/debian/install @@ -5,31 +5,31 @@ # https://www.phusionpassenger.com/library/deploy/standalone/reverse_proxy.html # Parameters -#SHARE="$1" +SHARE="$1" # Include basic functions -#. $SHARE/trashman/functions || exit 1 -#. $SHARE/trashman/debian || exit 1 +. $SHARE/trashman/functions || exit 1 +. $SHARE/trashman/debian || exit 1 # System setup -sudo apt-get update -sudo apt-get dist-upgrade -sudo apt-get install dirmngr -sudo apt-get install -y git-core imagemagick postgresql postgresql-contrib libpq-dev \ - curl build-essential zlib1g-dev libssl-dev libreadline-dev \ - libyaml-dev libsqlite3-dev sqlite3 libcurl4-openssl-dev \ - libxml2-dev libxslt1-dev software-properties-common nodejs \ - nginx-extras passenger +#sudo apt-get update +#sudo apt-get dist-upgrade +trashman_apt_install_packages dirmngr +trashman_apt_install_packages git-core imagemagick postgresql postgresql-contrib libpq-dev \ + curl build-essential zlib1g-dev libssl-dev libreadline-dev \ + libyaml-dev libsqlite3-dev sqlite3 libcurl4-openssl-dev \ + libxml2-dev libxslt1-dev software-properties-common nodejs \ + nginx-extras passenger # Database setup -sudo su postgres -c "createuser -s rails" -sudo su postgres -c "createdb helpy_production" +su postgres -c "createuser -s rails" +su postgres -c "createdb helpy_production" echo "Please set a passphrase for the rails@postgres user, then type \q..." echo -n "\\password rails\n" | sudo su postgres -c psql # User setup -sudo adduser rails -sudo gpasswd -a rails sudo +adduser rails +gpasswd -a rails sudo # Download RVM #\curl -sSL https://get.rvm.io -o rvm.sh |