Bob Mottram 8 年之前
父節點
當前提交
9c07b17bb4
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. 4
    4
      src/freedombone-app-mediagoblin

+ 4
- 4
src/freedombone-app-mediagoblin 查看文件

348
     echo '    }' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
348
     echo '    }' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
349
     echo '}' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
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
     echo '[Unit]' > /etc/systemd/system/mediagoblin.service
351
     echo '[Unit]' > /etc/systemd/system/mediagoblin.service
356
     echo 'Description=Media service' >> /etc/systemd/system/mediagoblin.service
352
     echo 'Description=Media service' >> /etc/systemd/system/mediagoblin.service
357
     echo 'Requires=network.target' >> /etc/systemd/system/mediagoblin.service
353
     echo 'Requires=network.target' >> /etc/systemd/system/mediagoblin.service
373
     systemctl daemon-reload
369
     systemctl daemon-reload
374
     systemctl start mediagoblin
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
     function_check create_site_certificate
376
     function_check create_site_certificate
377
     create_site_certificate $MEDIAGOBLIN_DOMAIN_NAME
377
     create_site_certificate $MEDIAGOBLIN_DOMAIN_NAME
378
 
378