-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a39d143
commit 6f542bf
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
##: This file should be EXEcutable! | ||
|
||
##: This script needs to be run with sudo | ||
ROOT_UID="0" | ||
|
||
#Check if run as root | ||
if [ "$UID" -ne "$ROOT_UID" ] ; then | ||
echo "You must run this script with sudo." | ||
exit 1 | ||
fi | ||
export CARTROOT=`echo "<?echo rtrim(get_cfg_var('cartulary_conf'), '/');?>" | php` | ||
|
||
##: Do a user check pass to pick up any user level config needed | ||
sudo php /opt/cartulary/bin/usercheck.php | ||
|
||
echo Side-loading packages up through version 0.6.10... | ||
|
||
##: Refresh apt | ||
echo Updating apt-get repos... | ||
apt-get update -qq | ||
|
||
echo Installing node.js... | ||
NODEVER=`node --version` | ||
if [[ "$NODEVER" == *"v4"* ]] ; then | ||
echo "You're on an old version of node. Upgrading..." | ||
sudo apt-get remove -y node nodejs | ||
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | ||
sudo apt-get install -y nodejs | ||
fi | ||
cd $CARTROOT/aggrivate | ||
sudo rm -rf node_modules/ | ||
sudo rm package-lock.json | ||
sudo npm -g install npm@latest | ||
sudo npm -g install npm@latest | ||
sudo npm install --unsafe-perm=true --allow-root | ||
|
||
echo Correcting feed database... | ||
echo " This could take a while since it checks the whole feed table. Please wait..." | ||
sudo php /opt/cartulary/bin/clean_nonfqdn_feeds.php | ||
sudo php /opt/cartulary/bin/clean_duplicate_feeds.php | ||
|
||
echo Running a full aggregator pass... | ||
echo " This could take a while since it checks error/dead feeds too. Please wait..." | ||
cd $CARTROOT/aggrivate | ||
sudo node ./aggrivate.js checkerror force | ||
sudo node ./aggrivate.js checkdead force | ||
suod node ./aggrivate.js force | ||
|
||
##: Log the upgrade | ||
CARTVER=`sudo php /opt/cartulary/bin/getversion.php raw` | ||
sudo php /opt/cartulary/bin/admin_notify.php --content="System was upgraded to version: v$CARTVER" --title="System Upgrade" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#Release Notes - Freedom Controller v0.7.9 | ||
|
||
|
||
The primary focus of this release is alternative s3 support for multimedia assets and mastodon timeline feed | ||
|
||
|
||
- New feature: Support for Alternative S3 storage for multimedia files | ||
- Think "Wasabi" with this. You can specify a wasabi key/secret/bucket/endpoint/region in the preferences page | ||
- If you have all of this filled in, audio and video files you upload will go to this bucket instead of Amazon | ||
- Wasabi has free (as in $$) egress, so putting the big files there will reduce your AWS bill | ||
- Remember to back it up though. :-) | ||
- In the next release we'll also support alternative S3 providers for primary storage | ||
- This is code that hasn't been touched in years, so we must tread carefully | ||
|
||
- New feature: Mastodon timeline support with filtering | ||
- Again, on the prefs page in the Mastodon section | ||
- You can subscribe to your timeline as an RSS feed | ||
- Apply a text filter to it, like "#coronavirus" and only items with that text string will show up in the feed | ||
- You can use this for taming the firehose of your mastodon timeline into something that only applies to your FC interests | ||
|
||
- Improvements: Cart'ing fixes | ||
- Better cartulizing of twitter threads. Still scraping since their API doesn't allow getting a whole thread. | ||
- Better handling of B'Berg articles. | ||
- Better handline of Apple News articles. | ||
- Bugfixes and tweaks |