Remove unused nsfw plugin
This commit is contained in:
parent
37457255dc
commit
f1bf180a6e
|
@ -50,10 +50,6 @@ SHARINGS_COMMIT='d5c6c7f855d9afff9086c09ea706f38c859bc0d4'
|
||||||
SHARINGS_THEME_REPO="http://git.lasindias.club/manuel/SharingsTheme"
|
SHARINGS_THEME_REPO="http://git.lasindias.club/manuel/SharingsTheme"
|
||||||
SHARINGS_THEME_COMMIT='7106c7ef03'
|
SHARINGS_THEME_COMMIT='7106c7ef03'
|
||||||
|
|
||||||
# NSFW plugin
|
|
||||||
GNUSOCIAL_NSFW_REPO="https://gitgud.io/ShitposterClub/SensitiveContent"
|
|
||||||
GNUSOCIAL_NSFW_COMMIT='a096bbe0cfae9a9b177682920ffb58d32a48e136'
|
|
||||||
|
|
||||||
GNUSOCIAL_TITLE='Pleroma FE'
|
GNUSOCIAL_TITLE='Pleroma FE'
|
||||||
|
|
||||||
# Number of months after which posts expire
|
# Number of months after which posts expire
|
||||||
|
@ -931,48 +927,6 @@ function install_gnusocial_markdown {
|
||||||
install_completed 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 {
|
function install_gnusocial {
|
||||||
if [ ! $ONION_ONLY ]; then
|
if [ ! $ONION_ONLY ]; then
|
||||||
ONION_ONLY='no'
|
ONION_ONLY='no'
|
||||||
|
@ -984,7 +938,6 @@ function install_gnusocial {
|
||||||
install_gnusocial_markdown
|
install_gnusocial_markdown
|
||||||
#install_gnusocial_plugin_sharings
|
#install_gnusocial_plugin_sharings
|
||||||
#install_gnusocial_plugin_sharings_theme
|
#install_gnusocial_plugin_sharings_theme
|
||||||
#install_gnusocial_plugin_nsfw
|
|
||||||
|
|
||||||
# Currently Pleroma won't install on ARM systems
|
# Currently Pleroma won't install on ARM systems
|
||||||
# because it uses node-sass which doesn't support ARM
|
# because it uses node-sass which doesn't support ARM
|
||||||
|
|
Loading…
Reference in New Issue