summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/pkg-utils.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 47bd7dc..5d48ffc 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -777,6 +777,7 @@ function delete_package_recursive($pkg) {
function delete_package_xml($pkg) {
global $g, $config, $fd_log, $static_output, $pkg_interface;
+ conf_mount_rw();
if(($pkgid = get_pkg_id($pkg)) == -1) {
$static_output .= "The {$pkg} package is not installed.\n\nDeletion aborted.";
@@ -935,7 +936,11 @@ function delete_package_xml($pkg) {
fwrite($tmptab, $line);
}
fclose($tmptab);
+
+ // Go RW again since the write_config above will put it back to RO
+ conf_mount_rw();
rename("{$g['tmp_path']}/crontab", "/etc/crontab");
+ conf_mount_ro();
}
function expand_to_bytes($size) {
OpenPOWER on IntegriCloud