Skip to content
Snippets Groups Projects
Commit 9972d6dd authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[*] Debian fixes

parent e41d6536
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ SET( CPACK_GENERATOR "DEB")
SET( CPACK_PACKAGE_NAME "${PROJECT_NAME}")
SET( CPACK_PACKAGE_VERSION_MAJOR 1)
SET( CPACK_PACKAGE_VERSION_MINOR 1)
SET( CPACK_PACKAGE_VERSION_PATCH 14)
SET( CPACK_PACKAGE_VERSION_PATCH 15)
SET( CPACK_SYSTEM_NAME "debian-9.7-amd64")
SET( CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}-${CPACK_PACKAGE_VERSION_PATCH}")
......
......@@ -21,6 +21,7 @@ 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/log || true
# Init testnet
if [ -e "$DAP_CFG_TESTNET" ]; then
......@@ -32,6 +33,8 @@ fi
cat $DAP_CFG_TESTNET_TPL > $DAP_CFG_TESTNET || true
cat /etc/passwd| grep kelvin-node || adduser --system --no-create-home --group --home /opt/kelvin-node kelvin-node
if [ -e "/etc/systemd/user/$DAP_APP_NAME.service" ]; then
echo "Restart $DAP_APP_NAME to implement changes"
else
......@@ -40,10 +43,10 @@ else
# systemctl --system start $DAP_APP_NAME
fi
#USERMAN=`users | awk '{print $1}'`
groupadd $DAP_CHAINS_NAME
adduser --system --no-create-home --group --home /opt/kelvin-node kelvin-node
#usermod -aG $DAP_CHAINS_NAME `users | awk '{print $1}'`
for username in $(cat /etc/passwd | grep "/home" | cut -d ':' -f1); do
usermod -aG $DAP_CHAINS_NAME $username
usermod -aG kelvin-node $username
done
mkdir -p $DAP_PREFIX/var/{run,lib/ca,lib/wallet,lib/global_db}
touch $DAP_PREFIX/var/run/kelvin-node.pid
......
......@@ -3,13 +3,15 @@ if [ "$1" == "purge" ] && [ -e /usr/share/debconf/confmodule ] ; then
. /usr/share/debconf/confmodule
db_purge
fi
GROUP_RM="kelvin"
GROUP_RM="kelvin-node"
systemctl stop kelvin-node
systemctl disable kelvin-node
systemctl stop kelvin-node || true
systemctl disable kelvin-node || true
#for username in `cat /etc/passwd | grep "/home" | cut -d ':' -f1`; do
# gpasswd -d $username $GROUP_RM || true
#done
#rm -r /opt/kelvin-node || true
#groupdel kelvin-node || true
#userdel kelvin-node || true
for username in (cat /etc/passwd | grep "/home" | cut -d ':' -f1); do
gpasswd -d $username $GROUP_RM
done
rm -r /opt/kelvin-node
groupdel kelvin
......@@ -7,7 +7,12 @@ type=testing
# Possible values: light, full, archive, master, root
node-role=full
#node-alias=addr-%node_addr%
gdb_groups_prefix=local-testnet
gdb_groups_prefix=private
seed_nodes_ipv4=[195.154.133.160, 62.210.90.227]
seed_nodes_port=[8097, 8097]
seed_nodes_aliases=[kelvin.testnet.root.0,kelvin.testnet.root.1]
seed_nodes_addrs=[ffff::0000::0000::0001,ffff::0000::0000::0002]
#[dag-poa]
#events-sign-cert=mycert
......
......@@ -10,6 +10,9 @@ WorkingDirectory=/opt/kelvin-node
ExecStart=/opt/kelvin-node/bin/kelvin-node -D
ExecStop=/opt/kelvin-node/bin/kelvin-node --stop
Restart=always
User=kelvin-node
Group=kelvin-node
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_IPC_LOCK CAP_KILL CAP_LEASE CAP_MKNOD CAP_NET_ADMIN CAP_NET_BROADCAST CAP_NET_RAW CAP_SYS_NICE CAP_SYS_RAWIO CAP_SYSLOG CAP_WAKE_ALARM
[Install]
WantedBy=multi-user.target
Subproject commit c93ede6618819350bec1937832efbac0eb06c460
Subproject commit 2cafdb986c3f27998060421e257deac0eb4e315d
Subproject commit b828028d05972e6342eec1e68438aa3a650397c7
Subproject commit 16835fd4f6414416616433c01116ebbc7b922e6c
Subproject commit 6778521f9f646e2985994e63f470067b3e2c1e48
Subproject commit d442b1fafaf6f8eddd339b3429c74b5325cef5f0
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