go-ethereum/packaging/templates/package_scripts/postinst.profile
Manav Darji 8a55299877
Merge pull request #1502 from maticnetwork/manav/change-file-perms
(chore): change file permissions to 755 for packaging and misc scripts
2025-03-26 18:31:38 +05:30

11 lines
280 B
Bash
Executable file

#!/bin/bash
# This is a postinstallation script so the service can be configured and started when requested
#
if [ -d "/var/lib/bor" ]
then
echo "Directory /var/lib/bor exists."
else
mkdir -p /var/lib/bor
sudo chown -R bor /var/lib/bor
fi
sudo systemctl daemon-reload