chown logged user to config file and allow to write

This commit is contained in:
lakinduakash 2019-04-13 17:31:38 +05:30
parent 3d80c7dc79
commit dfc5ec2cbd

View File

@ -985,6 +985,8 @@ write_config() {
eval echo $config_opt=\$$config_opt
done >> "$STORE_CONFIG"
chmod 600 $STORE_CONFIG
chown $(logname):$(logname) $STORE_CONFIG
echo -e "Config options written to '$STORE_CONFIG'"
exit 0
}