Browse Source

Restore ghost database password

Bob Mottram 8 years ago
parent
commit
cc72169bfd
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      src/freedombone-app-ghost

+ 17
- 0
src/freedombone-app-ghost View File

223
         GHOST_DOMAIN_NAME=$(get_completion_param "ghost domain")
223
         GHOST_DOMAIN_NAME=$(get_completion_param "ghost domain")
224
     fi
224
     fi
225
     if [ $GHOST_DOMAIN_NAME ]; then
225
     if [ $GHOST_DOMAIN_NAME ]; then
226
+        function_check get_mariadb_password
227
+        get_mariadb_password
228
+        DATABASE_PASSWORD=$MARIADB_PASSWORD
229
+
230
+        systemctl stop ghost
231
+
226
         function_check ghost_create_database
232
         function_check ghost_create_database
227
         ghost_create_database
233
         ghost_create_database
228
 
234
 
229
         function_check restore_database
235
         function_check restore_database
230
         restore_database ghost ${GHOST_DOMAIN_NAME}
236
         restore_database ghost ${GHOST_DOMAIN_NAME}
237
+
238
+        systemctl start ghost
239
+
240
+        DATABASE_PASSWORD=
241
+        MARIADB_PASSWORD=
231
     fi
242
     fi
232
 }
243
 }
233
 
244
 
255
         GHOST_DOMAIN_NAME=$(get_completion_param "ghost domain")
266
         GHOST_DOMAIN_NAME=$(get_completion_param "ghost domain")
256
     fi
267
     fi
257
 
268
 
269
+    function_check get_mariadb_password
270
+    get_mariadb_password
271
+
258
     function_check restore_database_from_friend
272
     function_check restore_database_from_friend
259
 
273
 
260
     function_check ghost_create_database
274
     function_check ghost_create_database
356
         return
370
         return
357
     fi
371
     fi
358
 
372
 
373
+    function_check get_mariadb_password
374
+    get_mariadb_password
375
+
359
     function_check create_database
376
     function_check create_database
360
     create_database ghost "$GHOST_ADMIN_PASSWORD"
377
     create_database ghost "$GHOST_ADMIN_PASSWORD"
361
 }
378
 }