Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Additions to avoid `Directory nonexistent` error.


<div id="top"></div>

Expand Down
4 changes: 4 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ sudo tee /etc/apt/sources.list.d/makedeb.list

sudo apt-get update && sudo apt-get install makedeb

# UNA-NONEXISTENT: Adding nonexistent directory
sudo mkdir -p /etc/una

git clone https://mpr.makedeb.org/una-bin.git && cd una-bin

makedeb -H "MPR-Package: una-bin" -H "MPR-Version: 3.2.0" -si && cd .. && rm -rf una-bin

una update; una help
5 changes: 5 additions & 0 deletions una
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,9 @@ fi
trap "rm -f "${LOCKFILE:?}"; tput cnorm; exit" INT TERM EXIT
echo $$ > ${LOCKFILE}

# UNA-NONEXISTENT: Adding nonexistent directory
sudo mkdir -p /etc/una

if [[ ! -d '/var/lib/una' ]] || { [[ ! -f '/var/lib/una/status' ]] || { [[ ! -f "$HOME/.config/autostart/una-updater.desktop" ]] || { [[ ! -f '/var/lib/una/cache' ]] || { [[ ! -d "${HOME}/.cache/una" ]] || [[ ! -f "/etc/una/config" ]]; } } } }; then
echo
info 'creating una directory and config files'
Expand All @@ -565,6 +568,8 @@ X-GNOME-Autostart-enabled=true
Name=Una Updater
Comment=Auto-updater for APT and MPR packages.
EOF
# UNA-NONEXISTENT: Adding nonexistent directory
sudo mkdir -p /etc/una
sudo sh -c "echo 'auto_update=true # enable/disable update notifications; set to true or false' >/etc/una/config"
sudo sh -c "echo 'update_check_gap=1d # time gap between checking for updates if auto_update=true; s for seconds (the default), m for minutes, h for hours or d for days' >/etc/una/config"
sudo mkdir -p /var/lib/una /etc/una
Expand Down
3 changes: 3 additions & 0 deletions una-updater
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ _ui() {
zenity --question --text 'Updated packages are available. Do you wish to upgrade?' --width 200 && x-terminal-emulator -e 'una upgrade; echo; echo "You can now close this window or press ENTER to close."; read enter' &
}

# UNA-NONEXISTENT: Adding nonexistent directory
sudo mkdir -p /etc/una

while true; do
source /etc/una/config &>/dev/null
if [[ "${auto_update}" == "true" ]]; then
Expand Down