Przeglądaj źródła

Rename blogstatic to pelican

Bob Mottram 8 lat temu
rodzic
commit
3d1d044d81
2 zmienionych plików z 18 dodań i 18 usunięć
  1. 17
    17
      src/freedombone-app-pelican
  2. 1
    1
      src/freedombone-image-customise

src/freedombone-app-blogstatic → src/freedombone-app-pelican Wyświetl plik

@@ -35,47 +35,47 @@ PELICAN_THEMES_REPO="https://github.com/getpelican/pelican-themes"
35 35
 PELICAN_PLUGINS_REPO="https://github.com/getpelican/pelican-plugins"
36 36
 DEFAULT_BLOG_TITLE=$"Freedombone Blog"
37 37
 
38
-blogstatic_variables=(MY_USERNAME
38
+pelican_variables=(MY_USERNAME
39 39
                       STATIC_BLOG_DOMAIN)
40 40
 
41
-function configure_interactive_blogstatic {
41
+function configure_interactive_pelican {
42 42
     echo -n ''
43 43
 }
44 44
 
45
-function install_interactive_blogstatic {
45
+function install_interactive_pelican {
46 46
     echo -n ''
47 47
     APP_INSTALLED=1
48 48
 }
49 49
 
50
-function change_password_blogstatic {
50
+function change_password_pelican {
51 51
     echo -n ''
52 52
 }
53 53
 
54
-function reconfigure_blogstatic {
54
+function reconfigure_pelican {
55 55
     echo -n ''
56 56
 }
57 57
 
58
-function upgrade_blogstatic {
58
+function upgrade_pelican {
59 59
     echo -n ''
60 60
 }
61 61
 
62
-function backup_local_blogstatic {
62
+function backup_local_pelican {
63 63
     echo -n ''
64 64
 }
65 65
 
66
-function restore_local_blogstatic {
66
+function restore_local_pelican {
67 67
     echo -n ''
68 68
 }
69 69
 
70
-function backup_remote_blogstatic {
70
+function backup_remote_pelican {
71 71
     echo -n ''
72 72
 }
73 73
 
74
-function restore_remote_blogstatic {
74
+function restore_remote_pelican {
75 75
     echo -n ''
76 76
 }
77 77
 
78
-function remove_blogstatic {
78
+function remove_pelican {
79 79
     echo -n ''
80 80
 }
81 81
 
@@ -188,7 +188,7 @@ function create_pelican_publish_conf {
188 188
     echo 'DELETE_OUTPUT_DIRECTORY = True' >> $STATIC_BLOG_FILE
189 189
 }
190 190
 
191
-function blogstatic_themes {
191
+function pelican_themes {
192 192
     # Clone themes separately because the themes repo sometimes has bad refs
193 193
     git clone https://github.com/KenMercusLai/BT3-Flat
194 194
     git clone https://github.com/abr4xas/Casper2Pelican
@@ -263,7 +263,7 @@ function blogstatic_themes {
263 263
     git clone https://github.com/kplaube/yapeme
264 264
 }
265 265
 
266
-function mesh_install_blogstatic {
266
+function mesh_install_pelican {
267 267
     if [[ $VARIANT != "meshclient" && $VARIANT != "meshusb" && $VARIANT != "usb" ]]; then
268 268
         return
269 269
     fi
@@ -295,7 +295,7 @@ function mesh_install_blogstatic {
295 295
 
296 296
     mkdir -p $rootdir$STATIC_BLOG_INSTALL_DIR/themes
297 297
     cd $rootdir$STATIC_BLOG_INSTALL_DIR/themes
298
-    blogstatic_themes
298
+    pelican_themes
299 299
 
300 300
     #git clone --recursive $PELICAN_PLUGINS_REPO $rootdir$STATIC_BLOG_INSTALL_DIR/plugins
301 301
 
@@ -303,9 +303,9 @@ function mesh_install_blogstatic {
303 303
     chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Public
304 304
 }
305 305
 
306
-function install_blogstatic {
306
+function install_pelican {
307 307
     if [ $INSTALLING_MESH ]; then
308
-        mesh_install_blogstatic
308
+        mesh_install_pelican
309 309
         return
310 310
     fi
311 311
 
@@ -336,7 +336,7 @@ function install_blogstatic {
336 336
 
337 337
     mkdir -p $PELICAN_THEMES_REPO $STATIC_BLOG_INSTALL_DIR/themes
338 338
     cd $PELICAN_THEMES_REPO $STATIC_BLOG_INSTALL_DIR/themes
339
-    blogstatic_themes
339
+    pelican_themes
340 340
 
341 341
     #git clone --recursive $PELICAN_PLUGINS_REPO $STATIC_BLOG_INSTALL_DIR/plugins
342 342
 

+ 1
- 1
src/freedombone-image-customise Wyświetl plik

@@ -568,7 +568,7 @@ initialise_mesh() {
568 568
     install_ipfs
569 569
     install_tox
570 570
     install_web_server
571
-    install_blogstatic
571
+    install_pelican
572 572
     if [ $ENABLE_ZERONET ]; then
573 573
         install_zeronet
574 574
     fi