From c57263a88bbaf759a32b04fcdec922750c46e47a Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 15:01:41 +0200 Subject: remove useless config_(un)lock calls round two --- config/tinc/tinc.inc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'config/tinc') diff --git a/config/tinc/tinc.inc b/config/tinc/tinc.inc index 717ce967..82d5b453 100644 --- a/config/tinc/tinc.inc +++ b/config/tinc/tinc.inc @@ -26,7 +26,6 @@ if (!function_exists('clear_log_file')) { function tinc_save() { global $config; conf_mount_rw(); - config_lock(); exec("/bin/mv -f /usr/local/etc/tinc /usr/local/etc/tinc.old"); safe_mkdir("/usr/local/etc/tinc"); safe_mkdir("/usr/local/etc/tinc/hosts"); @@ -127,7 +126,6 @@ function tinc_save() { rmdir_recursive("/usr/local/etc/tinc.old"); conf_mount_ro(); - config_unlock(); } function tinc_install() { @@ -142,7 +140,6 @@ function tinc_install() { clear_log_file("/var/log/tinc.log"); conf_mount_rw(); - config_lock(); /* Create Interface Group */ if (!is_array($config['ifgroups']['ifgroupentry'])) @@ -161,14 +158,12 @@ function tinc_install() { write_config(); conf_mount_ro(); - config_unlock(); } function tinc_deinstall() { global $config; /* Remove Interface Group */ conf_mount_rw(); - config_lock(); if (!is_array($config['ifgroups']['ifgroupentry'])) $config['ifgroups']['ifgroupentry'] = array(); @@ -200,7 +195,6 @@ function tinc_deinstall() { write_config(); } conf_mount_ro(); - config_unlock(); rmdir_recursive("/var/tmp/tinc"); rmdir_recursive("/usr/local/etc/tinc*"); -- cgit v1.2.3