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

[*] Update

parent 00c04679
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ set(CMAKE_C_STANDARD 11) ...@@ -8,7 +8,7 @@ set(CMAKE_C_STANDARD 11)
SET( CPACK_PACKAGE_NAME "${PROJECT_NAME}") SET( CPACK_PACKAGE_NAME "${PROJECT_NAME}")
SET( CPACK_PACKAGE_VERSION_MAJOR 3) SET( CPACK_PACKAGE_VERSION_MAJOR 3)
SET( CPACK_PACKAGE_VERSION_MINOR 2) SET( CPACK_PACKAGE_VERSION_MINOR 2)
SET( CPACK_PACKAGE_VERSION_PATCH 7) SET( CPACK_PACKAGE_VERSION_PATCH 8)
# init CellFrame SDK # init CellFrame SDK
add_definitions("-DDAP_VERSION=\"${CPACK_PACKAGE_VERSION_MAJOR}\"") add_definitions("-DDAP_VERSION=\"${CPACK_PACKAGE_VERSION_MAJOR}\"")
......
Subproject commit b1d26a14595f89b826b4652427e258981ec3411c Subproject commit 9a45f8fee0ee22663bd109bcf20dc155c9498046
...@@ -89,7 +89,7 @@ mkdir -p $DAP_PREFIX/var/log || true ...@@ -89,7 +89,7 @@ mkdir -p $DAP_PREFIX/var/log || true
mkdir -p $DAP_PREFIX/var/plugins || true mkdir -p $DAP_PREFIX/var/plugins || true
cat /etc/passwd| grep cellframe-node || adduser --system --no-create-home --group --home /opt/cellframe-node cellframe-node cat /etc/passwd| grep cellframe-node || adduser --system --no-create-home --group --home /opt/cellframe-node cellframe-node || true
echo "[*] Check /etc/systemd/system/$DAP_APP_NAME.service file..." echo "[*] Check /etc/systemd/system/$DAP_APP_NAME.service file..."
if [ -L /etc/systemd/system/$DAP_APP_NAME.service ]; then if [ -L /etc/systemd/system/$DAP_APP_NAME.service ]; then
...@@ -110,10 +110,10 @@ else ...@@ -110,10 +110,10 @@ else
adduser --system --no-create-home --group --home /opt/cellframe-node cellframe-node || true adduser --system --no-create-home --group --home /opt/cellframe-node cellframe-node || true
#usermod -aG $DAP_CHAINS_NAME `users | awk '{print $1}'` #usermod -aG $DAP_CHAINS_NAME `users | awk '{print $1}'`
for username in $(cat /etc/passwd | grep "/home" | cut -d ':' -f1); do for username in $(cat /etc/passwd | grep "/home" | cut -d ':' -f1); do
usermod -aG cellframe-node $username usermod -aG cellframe-node $username || true
done done
mkdir -p $DAP_PREFIX/var/{run,lib/ca,lib/wallet,lib/global_db,var/plugins} mkdir -p $DAP_PREFIX/var/{run,lib/ca,lib/wallet,lib/global_db,var/plugins} || true
touch $DAP_PREFIX/var/run/cellframe-node.pid touch $DAP_PREFIX/var/run/cellframe-node.pid || true
#chown -R $USERMAN:$USERMAN $DAP_PREFIX #chown -R $USERMAN:$USERMAN $DAP_PREFIX
for filename in $(find $DAP_PREFIX); do for filename in $(find $DAP_PREFIX); do
if [ -d $filename ]; then if [ -d $filename ]; then
......
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