Placed the omarchy installer in the correct folder under the new user
This commit is contained in:
1 file changed
+5
-4
+5
-4
@@ -112,7 +112,7 @@ mv "$cache_dir/airootfs/root/omarchy-installer/installer" "$cache_dir/airootfs/r
|
|||||||
mv "$cache_dir/airootfs/root/omarchy-installer/logo.txt" "$cache_dir/airootfs/root/logo.txt"
|
mv "$cache_dir/airootfs/root/omarchy-installer/logo.txt" "$cache_dir/airootfs/root/logo.txt"
|
||||||
rm -rf "$cache_dir/airootfs/root/omarchy-installer"
|
rm -rf "$cache_dir/airootfs/root/omarchy-installer"
|
||||||
|
|
||||||
git clone -b dev git@github.com:basecamp/omarchy.git "$cache_dir/airootfs/root/omarchy"
|
git clone -b dev --single-branch https://github.com/basecamp/omarchy.git "$cache_dir/airootfs/root/omarchy"
|
||||||
|
|
||||||
# Copy in the connectivity check script
|
# Copy in the connectivity check script
|
||||||
cp /check_connectivity.sh "$cache_dir/airootfs/root/check_connectivity.sh"
|
cp /check_connectivity.sh "$cache_dir/airootfs/root/check_connectivity.sh"
|
||||||
@@ -131,9 +131,10 @@ cat <<- _EOF_ | tee $cache_dir/airootfs/root/.automated_script.sh
|
|||||||
--creds user_credentials.json \
|
--creds user_credentials.json \
|
||||||
--silent && \
|
--silent && \
|
||||||
export OMARCHY_USER=\$(ls /home/) && \
|
export OMARCHY_USER=\$(ls /home/) && \
|
||||||
cp -r /root/omarchy "/home/\$OMARCHY_USER/" && \
|
mkdir -p /home/\$OMARCHY_USER/.local/share/ && \
|
||||||
chown \$OMARCHY_USER "/home/\$OMARCHY_USER/omarchy" \
|
cp -r /root/omarchy "/home/\$OMARCHY_USER/.local/share/" && \
|
||||||
su - \$OMARCHY_USER -c "source /home/\$OMARCHY_USER/omarchy/install.sh"
|
chown -R \$OMARCHY_USER: "/home/\$OMARCHY_USER//.local/" \
|
||||||
|
su - \$OMARCHY_USER -c "source /home/\$OMARCHY_USER/.local/share/omarchy/install.sh"
|
||||||
fi
|
fi
|
||||||
_EOF_
|
_EOF_
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user