Marquer les partages intranet, extranet et tools comme non supprimables

tags/ipasserelle-base-0.2.65-1
Daniel Berteaud 12 years ago
parent 6e41dc477d
commit 8516ac9302
  1. 9
      root/etc/e-smith/events/actions/ipasserelle-init-shares

@ -37,7 +37,8 @@ if (!$intranet){
WriteGroups => 'admins,equipe', WriteGroups => 'admins,equipe',
smbAccess => 'browseable', smbAccess => 'browseable',
httpAccess => 'none', httpAccess => 'none',
RecycleBin => 'disabled' RecycleBin => 'disabled',
Removable => 'no'
}); });
unless ( system("/sbin/e-smith/signal-event", "share-create", "intranet") == 0 ){ unless ( system("/sbin/e-smith/signal-event", "share-create", "intranet") == 0 ){
@ -58,7 +59,8 @@ if (!$extranet){
RequireSSL => 'disabled', RequireSSL => 'disabled',
Indexes => 'enabled', Indexes => 'enabled',
DynamicContent => 'disabled', DynamicContent => 'disabled',
RecycleBin => 'disabled' RecycleBin => 'disabled',
Removable => 'no'
}); });
unless ( system("/sbin/e-smith/signal-event", "share-create", "extranet") == 0 ){ unless ( system("/sbin/e-smith/signal-event", "share-create", "extranet") == 0 ){
@ -80,7 +82,8 @@ if (!$tools){
RequireSSL => 'disabled', RequireSSL => 'disabled',
Indexes => 'enabled', Indexes => 'enabled',
DynamicContent => 'disabled', DynamicContent => 'disabled',
RecycleBin => 'disabled' RecycleBin => 'disabled',
Removable => 'no'
}); });
unless ( system("/sbin/e-smith/signal-event", "share-create", "tools") == 0 ){ unless ( system("/sbin/e-smith/signal-event", "share-create", "tools") == 0 ){

Loading…
Cancel
Save