|
@@ -348,10 +348,6 @@ function install_mediagoblin {
|
348
|
348
|
echo ' }' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
|
349
|
349
|
echo '}' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
|
350
|
350
|
|
351
|
|
- su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin/ && bin/gmg dbupdate" - mediagoblin
|
352
|
|
- su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin/ && bin/gmg adduser --username $MY_USERNAME --password admin $MEDIAGOBLIN_ADMIN_PASSWORD" - mediagoblin
|
353
|
|
- su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin/ && bin/gmg makeadmin $MY_USERNAME" - mediagoblin
|
354
|
|
-
|
355
|
351
|
echo '[Unit]' > /etc/systemd/system/mediagoblin.service
|
356
|
352
|
echo 'Description=Media service' >> /etc/systemd/system/mediagoblin.service
|
357
|
353
|
echo 'Requires=network.target' >> /etc/systemd/system/mediagoblin.service
|
|
@@ -373,6 +369,10 @@ function install_mediagoblin {
|
373
|
369
|
systemctl daemon-reload
|
374
|
370
|
systemctl start mediagoblin
|
375
|
371
|
|
|
372
|
+ su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin/ && bin/gmg dbupdate" - mediagoblin
|
|
373
|
+ su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin/ && bin/gmg adduser --username $MY_USERNAME --password admin $MEDIAGOBLIN_ADMIN_PASSWORD" - mediagoblin
|
|
374
|
+ su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin/ && bin/gmg makeadmin $MY_USERNAME" - mediagoblin
|
|
375
|
+
|
376
|
376
|
function_check create_site_certificate
|
377
|
377
|
create_site_certificate $MEDIAGOBLIN_DOMAIN_NAME
|
378
|
378
|
|