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 <