We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b527c07 commit 0f55ca0Copy full SHA for 0f55ca0
zypperoni
@@ -155,8 +155,11 @@ def get_zypp_lock():
155
156
# Function to release lock on zypper
157
def release_zypp_lock():
158
- os.system(f"echo -n > {ZYPPER_PID_FILE} > /dev/null 2>&1")
159
- return True
+ if os.getuid == 0:
+ os.system(f"echo -n > {ZYPPER_PID_FILE}")
160
+ return True
161
+ else:
162
+ return False
163
164
# Function to unmount temp dirs provided list of UUIDs
165
def unmount(UUID):
0 commit comments