mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-04 13:17:22 +02:00
Compare commits
3 Commits
a67afa9b4b
...
1005790a58
Author | SHA1 | Date | |
---|---|---|---|
1005790a58 | |||
b5f93fa386 | |||
3b9d98bc0e |
@ -38,8 +38,9 @@ if hash fedora-third-party 2> /dev/null; then
|
|||||||
fedora-third-party query
|
fedora-third-party query
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: Better way of identifying Fedora Atomic! There is the overlayfs thing?
|
# If we have a /sysroot/ostree chances are we are on Fedora Atomic and
|
||||||
if [[ -f /usr/bin/dnf && ! -d /var/roothome ]]; then
|
# should use rpm-ostree instead of dnf
|
||||||
|
if [[ -f /usr/bin/dnf && ! -d /sysroot/ostree ]]; then
|
||||||
# I don't know if -y does anything here either and I think this may be
|
# I don't know if -y does anything here either and I think this may be
|
||||||
# useless, but I am used to it coming from apt and I think it will just
|
# useless, but I am used to it coming from apt and I think it will just
|
||||||
# say nothing to do or do nothing if mirrors haven't updated.
|
# say nothing to do or do nothing if mirrors haven't updated.
|
||||||
@ -57,9 +58,10 @@ if [[ -f /usr/bin/dnf && ! -d /var/roothome ]]; then
|
|||||||
|
|
||||||
# potentially unsafe, see a few lines above and the apt-get section
|
# potentially unsafe, see a few lines above and the apt-get section
|
||||||
dnf "$@" autoremove
|
dnf "$@" autoremove
|
||||||
# TODO: Better way of identifying Fedora Atomic! There is the overlayfs thing?
|
elif [[ -f /usr/bin/rpm-ostree && -d /sysroot/ostree ]]; then
|
||||||
elif [[ -f /usr/bin/rpm-ostree && -d /var/roothome ]]; then
|
|
||||||
rpm-ostree upgrade
|
rpm-ostree upgrade
|
||||||
|
# This may flash far too fast otherwise
|
||||||
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Arch Linux package management
|
# Arch Linux package management
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit b5f67ed87ec94517895a2f532020478488d89974
|
Subproject commit 564890434d2f5771b6f00de7af4b135d97c7964b
|
@ -1 +1 @@
|
|||||||
Subproject commit f55f61762768c4d5c81944c3890e2eceb6a2816a
|
Subproject commit 8f978bfdd0191a6375971f365a95df8afd7eef86
|
Loading…
x
Reference in New Issue
Block a user