hermes用户添加脚本
来源:互联网 发布:centos cacti 编辑:程序博客网 时间:2024/04/29 21:43
#!/bin/bash
read -p "Please input your email:" a
read -p "Please input your service-name:" b
read -p "Please input your stringid:" c
read -p "Please input your password for hermes:" d
RAILS_ENV=production /srv/www/hermes/starship/script/console << ECF
p = Person.new
p.email = '$a'
p.name = '$b'
p.stringid = '$c'
p.salt = Person.random_string(10)
p.hashed_password = Person.encrypt('$d', p.salt)
p.admin = true
p.save
exit
EOF
exit 0
read -p "Please input your email:" a
read -p "Please input your service-name:" b
read -p "Please input your stringid:" c
read -p "Please input your password for hermes:" d
RAILS_ENV=production /srv/www/hermes/starship/script/console << ECF
p = Person.new
p.email = '$a'
p.name = '$b'
p.stringid = '$c'
p.salt = Person.random_string(10)
p.hashed_password = Person.encrypt('$d', p.salt)
p.admin = true
p.save
exit
EOF
exit 0
- hermes用户添加脚本
- 添加用户的脚本
- 批量添加删除用户脚本
- 添加用户用到的脚本
- vsftpd添加虚拟用户脚本
- shell脚本批量添加用户
- VisionPro--toolblock添加用户脚本
- 批量添加用户脚本--摘自linuxsir
- 利用脚本批量添加域用户账户
- 利用脚本批量添加域用户账户
- 利用脚本批量添加域用户账户
- 无net添加用户的脚本
- 一个linux samba添加用户的脚本
- 批量添加用户shell脚本详解
- sqlserver添加多个用户脚本
- shell脚本-添加用户(非交互式)
- shell脚本-批量添加或删除用户
- DiscuzX3.2批量添加用户脚本
- Socket 错误一览表
- jdbc
- Android,谁动了我的内存(2)
- 调色板,兼容ie firefox
- obs服务起停急脚本
- hermes用户添加脚本
- 验证密码负责程度
- 验证密码负责程度
- Can't create table errono 121
- 现在可用: Windows Azure新的服务和增强功能
- 使用Font Creator 6.5批量修改字体大小、位置
- 去除String首尾字符
- 关于ExtJs中,下拉列表问题解决
- Cookie的写入与读出