fix something
This commit is contained in:
parent
934b9aa85d
commit
43db655466
1 changed files with 19 additions and 15 deletions
24
FE2TY-ZENITY
24
FE2TY-ZENITY
|
@ -35,16 +35,7 @@ main() {
|
|||
esac
|
||||
}
|
||||
|
||||
ty.install() {
|
||||
zenity --question --text="By pressing enter, you agree that this tool is not considered an official tool to install TyrianOS and should only be used as a last resort from an existing Fedora installation. Therefore, the creators of this script have absolutely no responsibility in the case of something happening, as it is very experimental. Do you really wish to proceed?" || exit 1
|
||||
(
|
||||
limsg s 1 i "Getting current deployment origin ref and backing up..."
|
||||
echo "0"
|
||||
echo "# Backing up current deployment origin ref"
|
||||
rpm-ostree status --booted --json | jq -r '.deployments[] | select(.booted) | ."container-image-reference"' > /etc/FE2TY-BURR.txt || limsg.quit s 1 e "Command failed. Do you have permission to write to /etc/ ?"
|
||||
limsg s 2 i "Cloning to temporary directory..."
|
||||
echo "20"
|
||||
echo "# Cloning TyrianOS source to temporary directory"
|
||||
clonesection() {
|
||||
cd "$HOME" || exit 1
|
||||
mkdir -v "$HOME"/87F9W3845GFG5R894OSEG || true
|
||||
pushd "$HOME"/87F9W3845GFG5R894OSEG || exit 1
|
||||
|
@ -60,6 +51,19 @@ ty.install() {
|
|||
cp -vr system_files/etc/skel/.* /var/home/*/
|
||||
popd || exit 1
|
||||
popd || exit 1
|
||||
}
|
||||
|
||||
ty.install() {
|
||||
zenity --question --text="By pressing enter, you agree that this tool is not considered an official tool to install TyrianOS and should only be used as a last resort from an existing Fedora installation. Therefore, the creators of this script have absolutely no responsibility in the case of something happening, as it is very experimental. Do you really wish to proceed?" || exit 1
|
||||
(
|
||||
limsg s 1 i "Getting current deployment origin ref and backing up..."
|
||||
echo "0"
|
||||
echo "# Backing up current deployment origin ref"
|
||||
rpm-ostree status --booted --json | jq -r '.deployments[] | select(.booted) | ."container-image-reference"' > /etc/FE2TY-BURR.txt || limsg.quit s 1 e "Command failed. Do you have permission to write to /etc/ ?"
|
||||
limsg s 2 i "Cloning to temporary directory..."
|
||||
echo "20"
|
||||
echo "# Cloning TyrianOS source to temporary directory"
|
||||
clonesection
|
||||
limsg s 2 i "Removing temporary directory again..."
|
||||
echo "75"
|
||||
echo "# Removing temporary directory"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue