- Timestamp:
- 05/12/2011 17:26:56 (13 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
confexport.in (modified) (3 diffs)
-
confman.conf.in (modified) (1 diff)
-
confmanlib.sh.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/confexport.in
r508 r515 40 40 fi 41 41 42 # This potentially changes the behavior for selecting the REPO_URI42 # This changes the behavior of some library functions (e.g. URIs, locks) 43 43 CONF_EXPORT="true" 44 44 … … 64 64 exec 1>/dev/null 65 65 fi 66 67 confexport_lock_system 66 68 67 69 umask 077 … … 102 104 fi 103 105 106 confexport_unlock_system "${system_lock}" 107 104 108 echo "Export complete." | conf_logger 105 109 106 110 conf_cleanExit 0 107 -
trunk/confman.conf.in
r511 r515 21 21 # The system lockfile 22 22 LOCKFILE="@localstaterundir@/confman.lock" 23 24 # The system lockfile for confexport 25 CONFEXPORT_LOCKFILE="@localstaterundir@/confexport.lock" 23 26 24 27 # The script for locking -
trunk/confmanlib.sh.in
r513 r515 230 230 ;; 231 231 esac 232 } 233 234 function confexport_lock_system { 235 "${LOCK}" lock $$ "${CONFEXPORT_LOCKFILE}" || die 236 } 237 238 function confexport_unlock_system { 239 "${LOCK}" unlock $$ "${CONFEXPORT_LOCKFILE}" 240 } 241 242 function confexport_system_is_locked { 243 "${LOCK}" haslock $$ "${CONFEXPORT_LOCKFILE}" 232 244 } 233 245 … … 1172 1184 1173 1185 conf_debug "Removing any system or working copy locks..." >&4 1174 conf_wcopy_is_locked && conf_unlock_wcopy ORIGINAL 1175 conf_system_is_locked && conf_unlock_system ORIGINAL 1186 if ${CONF_EXPORT}; then 1187 confexport_system_is_locked && confexport_unlock_system 1188 else 1189 conf_wcopy_is_locked && conf_unlock_wcopy ORIGINAL 1190 conf_system_is_locked && conf_unlock_system ORIGINAL 1191 fi 1176 1192 1177 1193 # And this clears any locks we may have created on our working copy:
Note: See TracChangeset
for help on using the changeset viewer.
