Update setup.sh
change to fit chrooted_cleaner_script.sh needs and adding variable to get new user name.
This commit is contained in:
28
setup.sh
28
setup.sh
@@ -1,13 +1,19 @@
|
|||||||
#bin/sh
|
#bin/bash
|
||||||
git clone https://github.com/OdiousImp2604/Sway-EndeavourOS.git
|
|
||||||
pushd SwayEOS >/dev/null
|
if [ -f /tmp/new_username.txt ]
|
||||||
cp -R .config /home/$NEW_USER/
|
then
|
||||||
cp -R .config ~/
|
NEW_USER=$(cat /tmp/new_username.txt)
|
||||||
cp .profile ~/
|
else
|
||||||
|
NEW_USER=$(cat /tmp/$chroot_path/etc/passwd | grep "/home" |cut -d: -f1 |head -1)
|
||||||
|
fi
|
||||||
|
|
||||||
|
git clone https://github.com/killajoe/SwayEOS.git
|
||||||
|
cd SwayEOS
|
||||||
|
cp -R .config /home/$NEW_USER/
|
||||||
|
chmod -R +x /home/$NEW_USER/.config/sway/scripts
|
||||||
|
chmod +x /home/$NEW_USER/.config/waybar/scripts/weather.sh
|
||||||
cp .profile /home/$NEW_USER/
|
cp .profile /home/$NEW_USER/
|
||||||
cp lightdm-gtk-greeter.conf /etc/lightdm/
|
chown -R $NEW_USER:$NEW_USER /home/$NEW_USER/.config
|
||||||
chmod -R +x ~/.config/Sway/scripts /home/$NEW_USER/.config/Sway/scripts
|
chown $NEW_USER:$NEW_USER /home/$NEW_USER/.profile
|
||||||
chmod +x ~/home/$NEW_USER/.config/waybar/scripts/weather.sh
|
cd ..
|
||||||
chown -R $NEW_USER:users /home/$NEW_USER/.config /home/$NEW_USER/.profile
|
|
||||||
popd >/dev/null
|
|
||||||
rm -rf SwayEOS
|
rm -rf SwayEOS
|
||||||
|
|||||||
Reference in New Issue
Block a user