mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
Fwknop: Set correct file permissions when generating config files
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
This commit is contained in:
@@ -53,6 +53,8 @@ gen_confs()
|
|||||||
if [ "$option" = "uci_enabled" ] && [ "$value" -eq 1 ] ; then
|
if [ "$option" = "uci_enabled" ] && [ "$value" -eq 1 ] ; then
|
||||||
> /etc/fwknop/fwknopd.conf
|
> /etc/fwknop/fwknopd.conf
|
||||||
> /etc/fwknop/access.conf
|
> /etc/fwknop/access.conf
|
||||||
|
chmod 600 /etc/fwknop/fwknopd.conf
|
||||||
|
chmod 600 /etc/fwknop/access.conf
|
||||||
UCI_ENABLED=1
|
UCI_ENABLED=1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user