From: Silvio Rhatto Date: Wed, 9 Jan 2019 19:20:22 +0000 (-0200) Subject: Adapt helpy to trashman way X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=999da92c374f2bd88dac0807cf019335e127dc0f;p=trashman.git Adapt helpy to trashman way --- 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