summaryrefslogtreecommitdiff
path: root/bin/enable-encryption
diff options
context:
space:
mode:
Diffstat (limited to 'bin/enable-encryption')
-rwxr-xr-xbin/enable-encryption10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/enable-encryption b/bin/enable-encryption
new file mode 100755
index 000000000..db264ea86
--- /dev/null
+++ b/bin/enable-encryption
@@ -0,0 +1,10 @@
+#!/usr/bin/perl
+
+use FS::UID qw(adminsuidsetup);
+use FS::Setup qw(enable_encryption);
+
+my $user = shift or die "Usage: enable-encryption user\n";
+
+adminsuidsetup $user;
+
+enable_encryption;