new janusweb release + tweaks
This commit is contained in:
parent
408ff8f815
commit
54a96de9ea
3 changed files with 6 additions and 5 deletions
|
|
@ -84,7 +84,7 @@ overlayfs(){
|
||||||
#apply_patches
|
#apply_patches
|
||||||
}
|
}
|
||||||
|
|
||||||
# cron-like function using sleep (./manifold.sh infinite 3600 zip -r /backup.zip /)
|
# cron-like function using sleep (./manyfold.sh infinite 3600 zip -r /backup.zip /)
|
||||||
infinite(){
|
infinite(){
|
||||||
trap 'echocolor "/bin/infinite $*: process ended..infinite does not care.."; sleep 2s' INT
|
trap 'echocolor "/bin/infinite $*: process ended..infinite does not care.."; sleep 2s' INT
|
||||||
interval=$1
|
interval=$1
|
||||||
|
|
@ -228,7 +228,7 @@ set_global(){
|
||||||
set_admin(){
|
set_admin(){
|
||||||
echocolor "[$APPNAME]" "adding xrforge admin"
|
echocolor "[$APPNAME]" "adding xrforge admin"
|
||||||
read -r -d '' QUERY <<EOF
|
read -r -d '' QUERY <<EOF
|
||||||
INSERT INTO users VALUES(1,'xrforge@localhost','\$2a\$12\$u/j8LRzbPiJRHmi1eV/fvOXXiKxN2vBGtNd.Pt28w.wOnq3rnfpzO','2025-07-25 10:52:56.989975','2025-07-25 12:46:27.338917','xrforge','{"models":true,"creators":true,"collections":true,"per_page":12}','{"grid_width":200,"grid_depth":200,"show_grid":true,"enable_pan_zoom":false,"background_colour":"#000000","object_colour":"#ffffff","render_style":"original"}','{"threshold":2,"heatmap":true,"keypair":true,"sorting":"frequency"}','{"missing":"danger","empty":"info","nesting":"warning","inefficient":"info","duplicate":"warning","no_image":"silent","no_3d_model":"silent","non_manifold":"warning","inside_out":"warning","no_license":"silent","no_links":"silent","no_creator":"silent","no_tags":"silent"}','{"hide_presupported_versions":true}',NULL,'2025-07-25 12:46:27.325287',NULL,NULL,0,NULL,NULL,NULL,NULL,'71863vkppj6k',1,1,1);
|
INSERT INTO users VALUES(1,'xrforge@localhost','\$2a\$12\$u/j8LRzbPiJRHmi1eV/fvOXXiKxN2vBGtNd.Pt28w.wOnq3rnfpzO','2025-07-25 10:52:56.989975','2025-07-25 12:46:27.338917','xrforge','{"models":true,"creators":true,"collections":true,"per_page":12}','{"grid_width":200,"grid_depth":200,"show_grid":true,"enable_pan_zoom":false,"background_colour":"#000000","object_colour":"#ffffff","render_style":"original"}','{"threshold":2,"heatmap":true,"keypair":true,"sorting":"frequency"}','{"missing":"danger","empty":"info","nesting":"warning","inefficient":"info","duplicate":"warning","no_image":"silent","no_3d_model":"silent","non_manyfold":"warning","inside_out":"warning","no_license":"silent","no_links":"silent","no_creator":"silent","no_tags":"silent"}','{"hide_presupported_versions":true}',NULL,'2025-07-25 12:46:27.325287',NULL,NULL,0,NULL,NULL,NULL,NULL,'71863vkppj6k',1,1,1);
|
||||||
EOF
|
EOF
|
||||||
debug sqlite3 /config/manyfold.sqlite3 "$QUERY"
|
debug sqlite3 /config/manyfold.sqlite3 "$QUERY"
|
||||||
debug sqlite3 /config/manyfold.sqlite3 'INSERT INTO users_roles VALUES(1,1);'
|
debug sqlite3 /config/manyfold.sqlite3 'INSERT INTO users_roles VALUES(1,1);'
|
||||||
|
|
@ -245,7 +245,7 @@ set_homepage(){
|
||||||
rename_app(){
|
rename_app(){
|
||||||
echocolor "[$APPNAME]" "renaming manyfold to $APPNAME"
|
echocolor "[$APPNAME]" "renaming manyfold to $APPNAME"
|
||||||
sed -i 's/title: Manyfold/title: '$APPNAME'/g' /usr/src/app/config/locales/*.yml
|
sed -i 's/title: Manyfold/title: '$APPNAME'/g' /usr/src/app/config/locales/*.yml
|
||||||
sed -i 's|powered_by_html:.*|powered_by_html: \|\n <small>Opensource-powered by <a href="https://manifold.app" target="_blank">Manyfold</a>, <a href="https://xrfragment.org">XR Fragments</a>, <a href="https://xrhf.isvery.ninja">XR Hypermedia Federation</a>, <a href="https://github.com/jbaicoianu/janusweb" target="_blank">JanusWeb</a>, <a href="https://nixos.org" target="_blank">NIX</a> and <a href="https://nlnet.nl" target="_blank">NLnet</a></small>|g' /usr/src/app/config/locales/*.yml
|
sed -i 's|powered_by_html:.*|powered_by_html: \|\n <small>Opensource-powered by <a href="https://manyfold.app" target="_blank">Manyfold</a>, <a href="https://xrfragment.org">XR Fragments</a>, <a href="https://xrhf.isvery.ninja">XR Hypermedia Federation</a>, <a href="https://github.com/jbaicoianu/janusweb" target="_blank">JanusWeb</a>, <a href="https://nixos.org" target="_blank">NIX</a> and <a href="https://nlnet.nl" target="_blank">NLnet</a></small>|g' /usr/src/app/config/locales/*.yml
|
||||||
sed -i 's| by_html:.*| by_html: \|\n XRForge is a <u tabindex="0">radically <span>openource platform. A sysadmin can selfhost this platform right now!<br><br><img src="assets/xrforge_term.svg" style="border-radius:7px; border-radius 7px; width 100%; max-width 450px; margin-bottom 40px;"/><br><br>This </span></u> opensource platform allows organisations to run on intranets or federate with others.|g' /usr/src/app/config/locales/*.yml
|
sed -i 's| by_html:.*| by_html: \|\n XRForge is a <u tabindex="0">radically <span>openource platform. A sysadmin can selfhost this platform right now!<br><br><img src="assets/xrforge_term.svg" style="border-radius:7px; border-radius 7px; width 100%; max-width 450px; margin-bottom 40px;"/><br><br>This </span></u> opensource platform allows organisations to run on intranets or federate with others.|g' /usr/src/app/config/locales/*.yml
|
||||||
echocolor "[$APPNAME]" "renaming 'model' to 'experience'"
|
echocolor "[$APPNAME]" "renaming 'model' to 'experience'"
|
||||||
for dir in /usr/src/app/config/locales/*.yml /usr/src/app/config/locales/*/*.yml; do
|
for dir in /usr/src/app/config/locales/*.yml /usr/src/app/config/locales/*/*.yml; do
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
"settings": "./apps/settings/settings.json",
|
"settings": "./apps/settings/settings.json",
|
||||||
"buttons": "./apps/buttons/buttons.json",
|
"buttons": "./apps/buttons/buttons.json",
|
||||||
"xrmenu": "./apps/xrmenu/xrmenu.json",
|
"xrmenu": "./apps/xrmenu/xrmenu.json",
|
||||||
|
"xrfragment": "./apps/xrfragment/xrfragment.json",
|
||||||
"vfs": "./apps/vfs/vfs.json"
|
"vfs": "./apps/vfs/vfs.json"
|
||||||
},
|
},
|
||||||
"includes": [],
|
"includes": [],
|
||||||
|
|
|
||||||
|
|
@ -42,9 +42,9 @@ let
|
||||||
|
|
||||||
janusweb = builtins.fetchTarball {
|
janusweb = builtins.fetchTarball {
|
||||||
name = "janusweb";
|
name = "janusweb";
|
||||||
url = "https://github.com/coderofsalvation/janusweb/releases/download/1.5.56-peertube/janusweb-1.5.56.tar.gz";
|
url = "https://github.com/coderofsalvation/janusweb/releases/download/1.7.1b/janusweb-1.7.0.tar.gz";
|
||||||
# Get the SHA256 hash by running: nix-prefetch-url --unpack <URL>
|
# Get the SHA256 hash by running: nix-prefetch-url --unpack <URL>
|
||||||
sha256 = "11mlbhmi3vs1xpxjp4dlxb8yi60dmdrh0bfkl0j0hlfhr9y2px4d";
|
sha256 = "0z72jsb6hzlsy6zi0y2dgknhiinmw2nsfcgrfpak7ai2gld2yw7j";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fetch the source from the GitHub tag
|
# Fetch the source from the GitHub tag
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue