From 7391398e2147f2f792d590e6b8535c9c2b9353cb Mon Sep 17 00:00:00 2001 From: anmol26s Date: Wed, 19 Sep 2018 00:36:04 +0530 Subject: [PATCH] Updated to first alpha version --- conf/app.src | 6 +++--- scripts/install | 15 +++++---------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/conf/app.src b/conf/app.src index 380aa04..20ec1ea 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,6 +1,6 @@ -SOURCE_URL=https://github.com/Plume-org/Plume/archive/ae8f8a1411a58236dee9ea561f05431e1c225d4f.zip -SOURCE_SUM=82b23a2da1077128c2f30e4d1ee29fa57b6a206038424f5589e1601223cf5b20 +SOURCE_URL=https://github.com/Plume-org/Plume/archive/0.2.0-alpha-1.tar.gz +SOURCE_SUM=5e825275e00420bb3fb3fbac496b2ffb310d84ffab8c872293e7d73f752917b2 SOURCE_SUM_PRG=sha256sum -SOURCE_FORMAT=zip +SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true SOURCE_FILENAME= diff --git a/scripts/install b/scripts/install index faddfad..59f653c 100755 --- a/scripts/install +++ b/scripts/install @@ -128,8 +128,8 @@ ynh_setup_source "$final_path" # Create a system user ynh_system_user_create $app $final_path -( cd $final_path && curl -sf -L https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly --date=2018-05-31 ) -export PATH="$PATH:$final_path/.cargo/bin:$final_path/.local/bin:/usr/local/sbin" +( cd $final_path && curl -sf -L https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly --date=2018-07-17 ) +export PATH="/root/.cargo/bin:$final_path/.local/bin:/usr/local/sbin" ( cd $final_path && cargo build ) ( cd $final_path && cargo install diesel_cli --no-default-features --features postgres --version '=1.2.0' ) ( cd $final_path && diesel migration run --database-url postgres://$db_name:$db_pwd@localhost:5432/plume ) @@ -144,11 +144,9 @@ export PATH="$PATH:$final_path/.cargo/bin:$final_path/.local/bin:/usr/local/sbin ynh_add_nginx_config -#================================================= -# SPECIFIC SETUP -#================================================= -# ... -#================================================= +# Optional, only do it if the database URL is not +# postgres://plume:plume@localhost/plume +( cd $final_path && export DB_URL=postgres://$db_name:$db_pwd@localhost:5432/plume ) #================================================= # SETUP SYSTEMD @@ -168,9 +166,6 @@ ynh_add_nginx_config # Create a dedicated systemd config ynh_add_systemd_config -# Optional, only do it if the database URL is not -# postgres://plume:plume@localhost/plume -( cd $final_path && export DB_URL=postgres://$db_name:$db_pwd@localhost:5432/plume ) # Create the media directory, where uploads will be stored (cd $final_path && mkdir media )