@@ -1805,23 +1805,27 @@ GenerateCaches () {
18051805
18061806InstallFireMotD () {
18071807 WriteLog Output Info " Attempting FireMotD installation"
1808- WriteLog Verbose Info " Creating firemotd folder"
1808+ WriteLog Verbose Info " Creating firemotd folder structure and permissions"
1809+ WriteLog Debug Info " Creating firemotd folder"
1810+ mkdir -m 0775 /usr/share/firemotd
1811+ WriteLog Debug Info " Cleaning up existing /usr/share/firemotd permissions"
18091812 chmod 0775 -R /usr/share/firemotd
1810- WriteLog Verbose Info " Creating themes directory folder"
1811- mkdir -p /usr/share/firemotd/themes
1812- WriteLog Verbose Info " Creating templates folder"
1813- mkdir -p /usr/share/firemotd/templates
1814- WriteLog Verbose Info " Creating data folder"
1813+ WriteLog Debug Info " Creating themes directory folder"
1814+ mkdir -m 0775 /usr/share/firemotd/themes
1815+ WriteLog Debug Info " Creating templates folder"
1816+ mkdir -m 0775 /usr/share/firemotd/templates
1817+ WriteLog Debug Info " Creating data folder"
18151818 mkdir -m 0777 -p /usr/share/firemotd/data
1819+ WriteLog Debug Info " Making data writable"
18161820 chmod 0777 /usr/share/firemotd/data
1817- WriteLog Verbose Info " Creating public data folder"
1821+ WriteLog Debug Info " Creating public data folder (poc) "
18181822 mkdir -m 0777 -p /usr/share/firemotd/data/rw
1819- WriteLog Verbose Info " Creating private data folder"
1823+ WriteLog Debug Info " Creating private data folder (poc) "
18201824 mkdir -m 0775 -p /usr/share/firemotd/data/ro
1821- WriteLog Verbose Info " Creating cache folder"
1825+ WriteLog Debug Info " Creating cache folder"
18221826 mkdir -m 0775 -p /usr/share/firemotd/cache
18231827 chmod 0775 /usr/share/firemotd/cache
1824- WriteLog Output Info " Downloading themes"
1828+ WriteLog Verbose Info " Downloading themes"
18251829 curl -s https://raw.githubusercontent.com/OutsideIT/FireMotD/master/themes/FireMotD-theme-Blanco.json > /usr/share/firemotd/themes/FireMotD-theme-Blanco.json
18261830 curl -s https://raw.githubusercontent.com/OutsideIT/FireMotD/master/themes/FireMotD-theme-Blue.json > /usr/share/firemotd/themes/FireMotD-theme-Blue.json
18271831 curl -s https://raw.githubusercontent.com/OutsideIT/FireMotD/master/themes/FireMotD-theme-Digipolis.json > /usr/share/firemotd/themes/FireMotD-theme-Digipolis.json
@@ -1860,7 +1864,7 @@ InstallFireMotD () {
18601864 WriteLog Debug Info " Chmod 0775 /usr/share/firemotd"
18611865 chmod 0775 /usr/share/firemotd
18621866 WriteLog Debug Info " Chmod 0776 $ExportFile "
1863- chmod 0776 $ExportFile
1867+ chmod 0776 " $ExportFile "
18641868}
18651869
18661870Present () {
0 commit comments