mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-21 19:40:11 +00:00
chown logged user to config file and allow to write
This commit is contained in:
parent
3d80c7dc79
commit
dfc5ec2cbd
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user