|
@@ -41,8 +41,6 @@ RSS_READER_DOMAIN_NAME=ttrss
|
41
|
41
|
RSS_MOBILE_READER_REPO="https://github.com/mboinet/ttrss-mobile"
|
42
|
42
|
RSS_MOBILE_READER_COMMIT='d5242e1c269e9480ab3b66b7a38da3c892dfb326'
|
43
|
43
|
RSS_READER_PATH=/etc/share/tt-rss
|
44
|
|
-RSS_READER_GNUSOCIAL_REPO="https://github.com/bashrc/ttrss-gnusocial"
|
45
|
|
-RSS_READER_GNUSOCIAL_COMMIT='20b2535e3f2b0ddc0117b584bdcaa6bf7a2d9fa2'
|
46
|
44
|
|
47
|
45
|
rss_variables=(RSS_READER_REPO
|
48
|
46
|
RSS_MOBILE_READER_REPO
|
|
@@ -591,44 +589,6 @@ function install_rss_main {
|
591
|
589
|
install_completed rss_main
|
592
|
590
|
}
|
593
|
591
|
|
594
|
|
-function install_rss_gnusocial {
|
595
|
|
- if [ ! "$GNUSOCIAL_DOMAIN_NAME" ]; then
|
596
|
|
- return
|
597
|
|
- fi
|
598
|
|
-
|
599
|
|
- if [ ! $RSS_READER_PATH ]; then
|
600
|
|
- RSS_READER_PATH=/etc/share/tt-rss
|
601
|
|
- fi
|
602
|
|
- RSS_READER_GNUSOCIAL_PATH=${RSS_READER_PATH}/plugins/gnusocial
|
603
|
|
-
|
604
|
|
- # update to the next commit
|
605
|
|
- function_check set_repo_commit
|
606
|
|
- set_repo_commit $RSS_READER_GNUSOCIAL_PATH "rss reader gnusocial commit" "$RSS_READER_GNUSOCIAL_COMMIT" $RSS_READER_GNUSOCIAL_REPO
|
607
|
|
- chown -R www-data:www-data $RSS_READER_GNUSOCIAL_PATH
|
608
|
|
-
|
609
|
|
- if [[ $(is_completed "${FUNCNAME[0]}") == "1" ]]; then
|
610
|
|
- return
|
611
|
|
- fi
|
612
|
|
-
|
613
|
|
- if [ ! -d "$INSTALL_DIR" ]; then
|
614
|
|
- mkdir -p "$INSTALL_DIR"
|
615
|
|
- fi
|
616
|
|
-
|
617
|
|
- cd "$INSTALL_DIR" || exit 7246284
|
618
|
|
- function_check git_clone
|
619
|
|
- git_clone $RSS_READER_GNUSOCIAL_REPO ttrss-gnusocial
|
620
|
|
- if [ ! -d "$INSTALL_DIR/ttrss-gnusocial" ]; then
|
621
|
|
- echo $'Could not clone repo for RSS reader gnusocial plugin'
|
622
|
|
- exit 52838
|
623
|
|
- fi
|
624
|
|
- cp -r "$INSTALL_DIR/ttrss-gnusocial" $RSS_READER_GNUSOCIAL_PATH
|
625
|
|
- cd "$RSS_READER_GNUSOCIAL_PATH" || exit 782462424
|
626
|
|
- git checkout $RSS_READER_GNUSOCIAL_COMMIT -b $RSS_READER_GNUSOCIAL_COMMIT
|
627
|
|
- set_completion_param "rss reader gnusocial commit" "$RSS_READER_GNUSOCIAL_COMMIT"
|
628
|
|
- chown -R www-data:www-data $RSS_READER_GNUSOCIAL_PATH
|
629
|
|
- install_completed rss_gnusocial
|
630
|
|
-}
|
631
|
|
-
|
632
|
592
|
function install_rss_mobile_reader {
|
633
|
593
|
if [ ! $RSS_READER_PATH ]; then
|
634
|
594
|
RSS_READER_PATH=/etc/share/tt-rss
|
|
@@ -689,7 +649,6 @@ function install_rss_mobile_reader {
|
689
|
649
|
|
690
|
650
|
function install_rss {
|
691
|
651
|
install_rss_main
|
692
|
|
- #install_rss_gnusocial
|
693
|
652
|
install_rss_mobile_reader
|
694
|
653
|
APP_INSTALLED=1
|
695
|
654
|
}
|