From 8b811b73436e64fee016e2a8f18a6e49601287cf Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sun, 16 Apr 2017 16:12:21 +0200 Subject: [enh] Create user + administrator --- scripts/install | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'scripts/install') diff --git a/scripts/install b/scripts/install index b78cb47..caeec25 100644 --- a/scripts/install +++ b/scripts/install @@ -188,8 +188,6 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf # Install crontab sudo cp ../conf/crontab_mastodon /etc/cron.d/$app sudo sed -i "s@__APP__@$app@g" /etc/cron.d/$app -# Restart crontab -sudo systemctl restart cron # Private or not if [ "$is_public" = "Yes" ]; @@ -208,4 +206,24 @@ fi sudo yunohost app ssowatconf # Reload Nginx -sudo systemctl reload nginx \ No newline at end of file +sudo systemctl reload nginx + +# all services start, please +sleep 30 + +# Mastodon need a user for creating an administator account +# rake create user is not up for the moment +# See PR: https://github.com/tootsuite/mastodon/pull/1482 +CREATE_USER + +# Create admin user +# Create confirm email +sudo su - $app < Date: Thu, 27 Apr 2017 22:34:49 +0200 Subject: [enh] Install tagged release --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/install') diff --git a/scripts/install b/scripts/install index ed2b1e7..67e69b0 100644 --- a/scripts/install +++ b/scripts/install @@ -87,6 +87,8 @@ sudo su - $app < Date: Fri, 28 Apr 2017 18:02:28 +0200 Subject: [fix] Install tagged release --- scripts/install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/install') diff --git a/scripts/install b/scripts/install index 67e69b0..d58f08e 100644 --- a/scripts/install +++ b/scripts/install @@ -82,12 +82,13 @@ sudo su -c "psql" postgres <<< \ ynh_psql_create_db_without_password "$app" sudo systemctl restart postgresql -# Download all Ruby source +# Download all sources rbenv, ruby and mastodon +pushd $final_path/live sudo su - $app < Date: Sat, 29 Apr 2017 22:02:55 +0200 Subject: [FIX] Switch to tagged release --- scripts/install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts/install') diff --git a/scripts/install b/scripts/install index d58f08e..55ab135 100644 --- a/scripts/install +++ b/scripts/install @@ -83,15 +83,16 @@ ynh_psql_create_db_without_password "$app" sudo systemctl restart postgresql # Download all sources rbenv, ruby and mastodon -pushd $final_path/live sudo su - $app < Date: Sat, 29 Apr 2017 23:58:25 +0200 Subject: [enh] Switch tagged release on install Work with 1.3.2 --- scripts/install | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/install') diff --git a/scripts/install b/scripts/install index 5d1e75e..1b82828 100644 --- a/scripts/install +++ b/scripts/install @@ -89,6 +89,10 @@ git clone https://github.com/rbenv/ruby-build.git $final_path/.rbenv/plugins/rub git clone https://github.com/tootsuite/mastodon.git $final_path/live CLONECOMMANDS +# Switch to tagged release +pushd $final_path/live +sudo git checkout $(git tag | tail -n 1) + # Be king rewind (/var/cache/yunohost/from_file/scripts) popd -- cgit v1.2.3-70-g09d2 From 96c72ba22523bd2485a08a111e9aadcb87344d53 Mon Sep 17 00:00:00 2001 From: nemsia Date: Sun, 30 Apr 2017 00:32:05 +0200 Subject: [fix] popd error --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/install') diff --git a/scripts/install b/scripts/install index b6be33c..a633a5d 100644 --- a/scripts/install +++ b/scripts/install @@ -162,7 +162,7 @@ type rbenv BCOMMANDS # Add Services -pushd $(popd) +popd sudo cp ../conf/mastodon-web.service /etc/systemd/system/mastodon-web.service sudo chown root: /etc/systemd/system/mastodon-web.service -- cgit v1.2.3-70-g09d2 From bf0b5ad36b12dc5516ce7429da2ded28e4904209 Mon Sep 17 00:00:00 2001 From: nemsia Date: Sun, 30 Apr 2017 00:35:01 +0200 Subject: [fix] popd on services file copy --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/install') diff --git a/scripts/install b/scripts/install index 1b82828..263a8dd 100644 --- a/scripts/install +++ b/scripts/install @@ -162,7 +162,7 @@ type rbenv BCOMMANDS # Add Services -pushd $(popd) +popd sudo cp ../conf/mastodon-web.service /etc/systemd/system/mastodon-web.service sudo chown root: /etc/systemd/system/mastodon-web.service -- cgit v1.2.3-70-g09d2 From 003c40c9e823b164126b6b18f7f90b9be9b0b5d8 Mon Sep 17 00:00:00 2001 From: nemsia Date: Sun, 30 Apr 2017 00:53:56 +0200 Subject: [fix] change pushd to cd --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/install') diff --git a/scripts/install b/scripts/install index 263a8dd..b36c8f2 100644 --- a/scripts/install +++ b/scripts/install @@ -90,7 +90,7 @@ git clone https://github.com/tootsuite/mastodon.git $final_path/live CLONECOMMANDS # Switch to tagged release -pushd $final_path/live +cd $final_path/live sudo git checkout $(git tag | tail -n 1) # Be king rewind (/var/cache/yunohost/from_file/scripts) -- cgit v1.2.3-70-g09d2