Fix permissions on config file in README.md and Gentoo ebuild
This commit is contained in:
@@ -50,7 +50,7 @@ wget -O /etc/ddns-service/config.toml https://git.ccc-rheintal.ch/spacefreak/ddn
|
|||||||
|
|
||||||
# The config file must not be world readable!
|
# The config file must not be world readable!
|
||||||
chmod 640 /etc/ddns-service/config.toml
|
chmod 640 /etc/ddns-service/config.toml
|
||||||
chown ddns:root /etc/ddns-service/config.toml
|
chown ddns:ddns /etc/ddns-service/config.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Service autostart
|
4. Service autostart
|
||||||
|
|||||||
@@ -53,10 +53,11 @@ python_install_all() {
|
|||||||
fowners ddns:ddns /var/lib/${PN} /var/log/${PN}
|
fowners ddns:ddns /var/lib/${PN} /var/log/${PN}
|
||||||
|
|
||||||
dodir /etc/${PN}
|
dodir /etc/${PN}
|
||||||
insopts -m640
|
fowners ddns:root /etc/${PN}
|
||||||
insinto /etc/${PN}
|
insinto /etc/${PN}
|
||||||
|
insopts -m640
|
||||||
newins files/config.example.toml config.toml
|
newins files/config.example.toml config.toml
|
||||||
fowners ddns:root -R /etc/${PN}
|
fowners ddns:ddns /etc/${PN}config.toml
|
||||||
|
|
||||||
distutils-r1_python_install_all
|
distutils-r1_python_install_all
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user