Skip to content
Snippets Groups Projects
Commit cd447389 authored by Vermaat's avatar Vermaat
Browse files

Copy user config from install as root (fixes #64)

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@385 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
parent d0682e4b
No related branches found
No related tags found
No related merge requests found
......@@ -46,8 +46,9 @@ for USERNAME in $(cut -f 1 -d : /etc/passwd); do
echo -e "${COLOR_INFO}Creating /home/${USERNAME}/.cache/mutalyzer${COLOR_END}"
su $USERNAME -c "mkdir -p /home/$USERNAME/.config/mutalyzer"
su $USERNAME -c "mkdir -p /home/$USERNAME/.cache/mutalyzer"
su $USERNAME -c "cp extras/config.user.example /home/$USERNAME/.config/mutalyzer/config"
su $USERNAME -c "touch /home/$USERNAME/.config/mutalyzer/config"
su $USERNAME -c "touch /tmp/mutalyzer-$USERNAME.log"
cat extras/config.user.example > /home/$USERNAME/.config/mutalyzer/config
sed -i -e "s@<USERNAME>@${USERNAME}@g" /home/$USERNAME/.config/mutalyzer/config
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment