瀏覽代碼

Rename blogstatic to pelican

Bob Mottram 8 年之前
父節點
當前提交
3d1d044d81
共有 2 個文件被更改,包括 18 次插入18 次删除
  1. 17
    17
      src/freedombone-app-pelican
  2. 1
    1
      src/freedombone-image-customise

src/freedombone-app-blogstatic → src/freedombone-app-pelican 查看文件

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

+ 1
- 1
src/freedombone-image-customise 查看文件

568
     install_ipfs
568
     install_ipfs
569
     install_tox
569
     install_tox
570
     install_web_server
570
     install_web_server
571
-    install_blogstatic
571
+    install_pelican
572
     if [ $ENABLE_ZERONET ]; then
572
     if [ $ENABLE_ZERONET ]; then
573
         install_zeronet
573
         install_zeronet
574
     fi
574
     fi