this should be better going forward
This commit is contained in:
@@ -128,7 +128,6 @@ generate_BirdDB() {
|
|||||||
elif ! grep Date $my_dir/BirdDB.txt;then
|
elif ! grep Date $my_dir/BirdDB.txt;then
|
||||||
sudo -u ${USER} sed -i '1 i\Date;Time;Sci_Name;Com_Name;Confidence;Lat;Lon;Cutoff;Week;Sens;Overlap' $my_dir/BirdDB.txt
|
sudo -u ${USER} sed -i '1 i\Date;Time;Sci_Name;Com_Name;Confidence;Lat;Lon;Cutoff;Week;Sens;Overlap' $my_dir/BirdDB.txt
|
||||||
fi
|
fi
|
||||||
ln -sf $my_dir/BirdDB.txt ${my_dir}/BirdDB.txt &&
|
|
||||||
chown $USER:$USER ${my_dir}/BirdDB.txt && chmod g+rw ${my_dir}/BirdDB.txt
|
chown $USER:$USER ${my_dir}/BirdDB.txt && chmod g+rw ${my_dir}/BirdDB.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -407,6 +406,10 @@ install_cleanup_cron() {
|
|||||||
sed "s/\$USER/$USER/g" $my_dir/templates/cleanup.cron >> /etc/crontab
|
sed "s/\$USER/$USER/g" $my_dir/templates/cleanup.cron >> /etc/crontab
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chown_things() {
|
||||||
|
chown -R $USER:$USER $HOME/Bird*
|
||||||
|
}
|
||||||
|
|
||||||
install_services() {
|
install_services() {
|
||||||
set_hostname
|
set_hostname
|
||||||
update_etc_hosts
|
update_etc_hosts
|
||||||
@@ -439,6 +442,7 @@ install_services() {
|
|||||||
if [ -f ${config_file} ];then
|
if [ -f ${config_file} ];then
|
||||||
source ${config_file}
|
source ${config_file}
|
||||||
install_services
|
install_services
|
||||||
|
chown_things
|
||||||
else
|
else
|
||||||
echo "Unable to find a configuration file. Please make sure that $config_file exists."
|
echo "Unable to find a configuration file. Please make sure that $config_file exists."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user