mirror of https://github.com/PurpleI2P/i2pd-snap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
405 B
14 lines
405 B
#!/bin/env bash |
|
|
|
if [ "$1" == 'reload' ]; then |
|
exec "$SNAP/bin/kill" -1 $(cat $SNAP_DATA/datadir/i2pd.pid) |
|
elif [ "$1" == 'graceful' ]; then |
|
exec "$SNAP/bin/kill" -2 $(cat $SNAP_DATA/datadir/i2pd.pid) |
|
else |
|
if [ ! -d "$SNAP_DATA/datadir" ]; then |
|
mkdir $SNAP_DATA/datadir |
|
cp -R $SNAP/appdata/* $SNAP_DATA/datadir/ |
|
fi |
|
|
|
exec "$SNAP/bin/i2pd" --datadir=$SNAP_DATA/datadir |
|
fi |