fred 3 weeks ago
parent
commit
22fe374bbd
  1. 2
      .install/.kodi/userdata/guisettings.xml
  2. 3
      .install/ipfs_alone.sh
  3. 2
      ISOconfig.sh
  4. 13
      ajouter_video.sh
  5. 4
      zen/new_file_in_astroport.sh

2
.install/.kodi/userdata/guisettings.xml

@ -226,7 +226,7 @@
<setting id="services.useairplaypassword" default="true">false</setting>
<setting id="services.webserver">true</setting>
<setting id="services.webserverpassword" default="true"></setting>
<setting id="services.webserverport">8181</setting>
<setting id="services.webserverport">8081</setting>
<setting id="services.webserverssl" default="true">false</setting>
<setting id="services.webserverusername">xbmc</setting>
<setting id="services.webskin" default="true">webinterface.default</setting>

3
.install/ipfs_alone.sh

@ -133,8 +133,7 @@ ipfs bootstrap rm --all
###########################################
# BOOTSTRAP NODES ARE ADDED LATER
###########################################
# AVOID CONFLICT WITH KODI REMOTE
# ipfs config Addresses.Gateway "/ip4/127.0.0.1/tcp/8181"
# AVOID CONFLICT WITH KODI ./.install/.kodi/userdata/guisettings.xml
ipfs config Addresses.Gateway "/ip4/0.0.0.0/tcp/8080"
[[ "$USER" != "xbian" ]] && sudo systemctl restart ipfs

2
ISOconfig.sh

@ -281,7 +281,7 @@ do
done
# AVOID CONFLICT WITH KODI REMOTE
ipfs config Addresses.Gateway "/ip4/127.0.0.1/tcp/8181"
ipfs config Addresses.Gateway "/ip4/127.0.0.1/tcp/8080"
########################################################################
# SUDO permissions

13
ajouter_video.sh

@ -603,12 +603,13 @@ FILE_SIZE=$(echo "${FILE_BSIZE}" | awk '{ split( "B KB MB GB TB PB" , v ); s=1;
########################################################################
########################################################################
if [ ! $2 ]; then
zenity --question --width 300 --text "OK! ~/astroport/Add_${MEDIAKEY}_script.sh ($FILE_SIZE). Voulez-vous lancer immédiatement l'ajout dans Astroport ?"; \
[ $? == 0 ] && bash ~/astroport/Add_${MEDIAKEY}_script.sh "noh265"\
zenity --question --width 300 --text "OK! ~/astroport/Add_${MEDIAKEY}_script.sh ($FILE_SIZE). Voulez-vous lancer immédiatement l'ajout dans Astroport ?"; \
[ $? == 0 ] && bash ~/astroport/Add_${MEDIAKEY}_script.sh "noh265" \
&& zenity --warning --width 300 --text "Ajoutez ce media dans vos journaux public 'qo-op' ou administratif 'moa'" \
&& [[ $(cat ~/.zen/game/players/.current/.playerns 2>/dev/null) ]] && xdg-open "http://127.0.0.1:8080/ipns/$(cat ~/.zen/game/players/.current/.playerns)"
fi
[ $? != 0 ] && zenity --warning --width 300 --text "Désolé une erreur est survenue... /tmp/${MEDIAKEY}.log"; exit 1
&& [[ $(cat ~/.zen/game/players/.current/.playerns 2>/dev/null) ]] \
&& xdg-open "http://127.0.0.1:8080/ipns/$(cat ~/.zen/game/players/.current/.playerns)" \
|| ( zenity --warning --width 300 --text "Désolé une erreur est survenue... /tmp/${MEDIAKEY}.log" && exit 1 )\
exit 0
echo "${MEDIAKEY} = RECORDED TO IPFS."
cat /tmp/${MEDIAKEY}.log

4
zen/new_file_in_astroport.sh

@ -421,13 +421,13 @@ then
TAGS="${CAT} astroport $GENRE"
CANON=''
else
TEXT=''
TEXT='${MEDIAKEY}'
TAGS='$:/isAttachment $:/isIpfs astroport '${CAT} $GENRE
CANON="/ipfs/"${IPFSID}
fi
## Add screen
SCREENDIR=$(ipfs add -wq "$HOME/astroport/${TYPE}/${REFERENCE}/screen.png" | tail -n 1)
SCREENDIR=$(ipfs add -wq "$HOME/astroport/${TYPE}/${REFERENCE}/${CAT}.png" | tail -n 1)
echo "## Creation json tiddler"
echo '[

Loading…
Cancel
Save