Skip to content
Snippets Groups Projects
Unverified Commit f7a45f10 authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov Committed by GitHub
Browse files

Merge pull request #46 from osetrovich/f2323-debian-deploy

Fixed installation process on debian.
parents 50efe3d3 7f0f184e
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,6 @@ fi
cat $DAP_CFG_TPL > $DAP_CFG || true
mkdir -p $DAP_PREFIX/var/lib/network/kelvin-testnet/zerochain/ || true
mkdir -p $DAP_PREFIX/var/lib/network/kelvin-testnet/plasma/ || true
mkdir -p $DAP_PREFIX/var/run || true
# Init testnet
if [ -e "$DAP_CFG_TESTNET" ]; then
......@@ -40,5 +39,12 @@ else
systemctl --system enable $DAP_PREFIX/share/$DAP_APP_NAME.service
# systemctl --system start $DAP_APP_NAME
fi
USERMAN=`users | awk '{print $1}'`
#groupadd $DAP_CHAINS_NAME
#usermod -aG $DAP_CHAINS_NAME `users | awk '{print $1}'`
mkdir -p $DAP_PREFIX/var/{run,lib/ca,lib/wallet,lib/global_db}
touch $DAP_PREFIX/var/run/kelvin-node.pid
chown -R $USERMAN:$USERMAN $DAP_PREFIX
chmod 0775 $DAP_PREFIX/var/{run,lib/ca,lib/wallet,lib/global_db}
echo "For start $DAP_APP_NAME - run 'systemctl start $DAP_APP_NAME'"
......@@ -2,4 +2,6 @@
if [ "$1" == "purge" ] && [ -e /usr/share/debconf/confmodule ] ; then
. /usr/share/debconf/confmodule
db_purge
fi
\ No newline at end of file
fi
usermod -G $(groups $(id -nu) | sed 's/kelvin//')
groupdel kelvin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment