depot/third_party/nixpkgs/pkgs/by-name/fr/freenet/freenetWrapper
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

17 lines
436 B
Bash
Executable file

#! @bash@/bin/bash
set -eo pipefail
PATH=@coreutils@/bin:$PATH
export CLASSPATH=@CLASSPATH@
export FREENET_HOME="$HOME/.local/share/freenet"
if [ -n "$XDG_DATA_HOME" ] ; then
FREENET_HOME="$XDG_DATA_HOME/freenet"
fi
mkdir -p -- $FREENET_HOME
cp -u -- @seednodes@/seednodes.fref $FREENET_HOME/seednodes.fref
chmod u+rw -- $FREENET_HOME/seednodes.fref
cd -- $FREENET_HOME
exec @jre@/bin/java -Xmx1024M freenet.node.NodeStarter "$@"