From f1bf180a6e1523493a9f90dd93a17c57cf9d9042 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 30 Apr 2017 19:28:51 +0100 Subject: [PATCH] Remove unused nsfw plugin --- src/freedombone-app-gnusocial | 47 ----------------------------------- 1 file changed, 47 deletions(-) diff --git a/src/freedombone-app-gnusocial b/src/freedombone-app-gnusocial index 4a8c0d39..e15019b6 100755 --- a/src/freedombone-app-gnusocial +++ b/src/freedombone-app-gnusocial @@ -50,10 +50,6 @@ SHARINGS_COMMIT='d5c6c7f855d9afff9086c09ea706f38c859bc0d4' SHARINGS_THEME_REPO="http://git.lasindias.club/manuel/SharingsTheme" SHARINGS_THEME_COMMIT='7106c7ef03' -# NSFW plugin -GNUSOCIAL_NSFW_REPO="https://gitgud.io/ShitposterClub/SensitiveContent" -GNUSOCIAL_NSFW_COMMIT='a096bbe0cfae9a9b177682920ffb58d32a48e136' - GNUSOCIAL_TITLE='Pleroma FE' # Number of months after which posts expire @@ -931,48 +927,6 @@ function install_gnusocial_markdown { install_completed gnusocial_markdown } -function install_gnusocial_plugin_nsfw { - if [ ! -d /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/local/plugins ]; then - echo $'No local/plugins directory found for the gnusocial' - exit 37252 - fi - - # update to the next commit - function_check set_repo_commit - set_repo_commit /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/local/plugins "gnusocial NSFW plugin commit" "$GNUSOCIAL_NSFW_COMMIT" $GNUSOCIAL_NSFW_REPO - - if [[ $(is_completed $FUNCNAME) == "1" ]]; then - return - fi - - cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/local/plugins - function_check git_clone - git_clone $GNUSOCIAL_NSFW_REPO SensitiveContent - if [ ! -d /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/local/plugins/SensitiveContent ]; then - echo $'Unable to clone gnusocial NSFW plugin' - exit 36738 - fi - - cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/local/plugins/SensitiveContent - git stash - git checkout master - git branch -D $GNUSOCIAL_NSFW_COMMIT - git checkout $GNUSOCIAL_NSFW_COMMIT -b $GNUSOCIAL_NSFW_COMMIT - - # enable the plugin - if ! grep -q "addPlugin('SensitiveContent');" /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/config.php; then - echo "addPlugin('SensitiveContent');" >> /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/config.php - fi - - cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs - php scripts/checkschema.php - - chown -R www-data:www-data /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs - - set_completion_param "gnusocial NSFW plugin commit" "$GNUSOCIAL_NSFW_COMMIT" - install_completed gnusocial_plugin_nsfw -} - function install_gnusocial { if [ ! $ONION_ONLY ]; then ONION_ONLY='no' @@ -984,7 +938,6 @@ function install_gnusocial { install_gnusocial_markdown #install_gnusocial_plugin_sharings #install_gnusocial_plugin_sharings_theme - #install_gnusocial_plugin_nsfw # Currently Pleroma won't install on ARM systems # because it uses node-sass which doesn't support ARM