pull masto frontend from docker image
This commit is contained in:
parent
8577c42d0b
commit
63bfde9bcb
1 changed files with 12 additions and 7 deletions
19
helperbot
19
helperbot
|
|
@ -733,6 +733,7 @@ function fedi_sync_blocklists {
|
||||||
|
|
||||||
# update standalone frontends
|
# update standalone frontends
|
||||||
function fedi_update_frontends {
|
function fedi_update_frontends {
|
||||||
|
local chuckya_image_url=ghcr.io/synth-download/mastodon:nightly
|
||||||
local chuckya_fe_url=https://github.com/sneexy-boi/synth.download/releases/download/fedi-frontend/chuckya-fe.zip
|
local chuckya_fe_url=https://github.com/sneexy-boi/synth.download/releases/download/fedi-frontend/chuckya-fe.zip
|
||||||
local akkoma_chuckya_url=https://github.com/sneexy-boi/synth.download/releases/download/fedi-frontend/akkoma-fe-chuckya.zip
|
local akkoma_chuckya_url=https://github.com/sneexy-boi/synth.download/releases/download/fedi-frontend/akkoma-fe-chuckya.zip
|
||||||
local akkoma_iceshrimp_url=https://github.com/sneexy-boi/synth.download/releases/download/fedi-frontend/akkoma-fe-iceshrimp.zip
|
local akkoma_iceshrimp_url=https://github.com/sneexy-boi/synth.download/releases/download/fedi-frontend/akkoma-fe-iceshrimp.zip
|
||||||
|
|
@ -751,31 +752,35 @@ function fedi_update_frontends {
|
||||||
wget "$1" -O /tmp/"$2".zip
|
wget "$1" -O /tmp/"$2".zip
|
||||||
unzip -o /tmp/"$2" -d $frontend_folder/"$3"
|
unzip -o /tmp/"$2" -d $frontend_folder/"$3"
|
||||||
rm /tmp/"$2".zip
|
rm /tmp/"$2".zip
|
||||||
|
echo "${green}Okay.${normal}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: it's probably possible to turn this into an array loop of some sort
|
# TODO: it's probably possible to turn this into an array loop of some sort
|
||||||
echo "${blue}update-frontends:${normal} Updating standalone frontends..."
|
echo "${blue}update-frontends:${normal} Updating standalone frontends..."
|
||||||
if [ -d "$frontend_folder" ]; then
|
if [ -d "$frontend_folder" ]; then
|
||||||
# update mastodon
|
# update merpstodon frontend files
|
||||||
echo "${blue}Updating Mastodon...${normal}"
|
echo "${blue}Updating Chuckya...${normal}"
|
||||||
_repeat_process $chuckya_fe_url chuckya-fe chuckya-fe
|
chuckya_web=$(docker create "$chuckya_image_url")
|
||||||
|
mkdir -p $frontend_folder/chuckya-masto
|
||||||
|
docker cp "$chuckya_web:/opt/mastodon/public" "/var/www/fedi-frontends/chuckya-masto"
|
||||||
|
docker stop "$chuckya_web" && docker rm "$chuckya_web"
|
||||||
|
unset chuckya_web
|
||||||
echo "${green}Okay.${normal}"
|
echo "${green}Okay.${normal}"
|
||||||
|
# update mastodon
|
||||||
|
echo "${blue}Updating Standalone Chuckya...${normal}"
|
||||||
|
_repeat_process $chuckya_fe_url chuckya-fe chuckya-fe
|
||||||
# update akkoma iceshrimp
|
# update akkoma iceshrimp
|
||||||
echo "${blue}Updating Akkoma for Iceshrimp.NET...${normal}"
|
echo "${blue}Updating Akkoma for Iceshrimp.NET...${normal}"
|
||||||
_repeat_process $akkoma_iceshrimp_url akkoma-fe-iceshrimp akkoma-fe-iceshrimp
|
_repeat_process $akkoma_iceshrimp_url akkoma-fe-iceshrimp akkoma-fe-iceshrimp
|
||||||
echo "${green}Okay.${normal}"
|
|
||||||
# update akkoma mastodon
|
# update akkoma mastodon
|
||||||
echo "${blue}Updating Akkoma for Chuckya...${normal}"
|
echo "${blue}Updating Akkoma for Chuckya...${normal}"
|
||||||
_repeat_process $akkoma_chuckya_url akkoma-fe-chuckya akkoma-fe-chuckya
|
_repeat_process $akkoma_chuckya_url akkoma-fe-chuckya akkoma-fe-chuckya
|
||||||
echo "${green}Okay.${normal}"
|
|
||||||
# update phanpy
|
# update phanpy
|
||||||
echo "${blue}Updating Phanpy...${normal}"
|
echo "${blue}Updating Phanpy...${normal}"
|
||||||
_repeat_process $phanpy_url phanpy phanpy
|
_repeat_process $phanpy_url phanpy phanpy
|
||||||
echo "${green}Okay.${normal}"
|
|
||||||
# update pl-fe
|
# update pl-fe
|
||||||
echo "${blue}Updating pl-fe...${normal}"
|
echo "${blue}Updating pl-fe...${normal}"
|
||||||
_repeat_process $pl_fe_url pl-fe pl-fe
|
_repeat_process $pl_fe_url pl-fe pl-fe
|
||||||
echo "${green}Okay.${normal}"
|
|
||||||
else
|
else
|
||||||
echo "${red}update-frontends:${normal} $frontend_folder doesn't exist."
|
echo "${red}update-frontends:${normal} $frontend_folder doesn't exist."
|
||||||
return 1
|
return 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue