|
@@ -257,6 +257,8 @@ function logging_off_pleroma {
|
257
|
257
|
function remove_user_pleroma {
|
258
|
258
|
remove_username="$1"
|
259
|
259
|
|
|
260
|
+ cd $PLEROMA_DIR || exit 252498
|
|
261
|
+ mix rm_user "$remove_username"
|
260
|
262
|
"${PROJECT_NAME}-pass" -u "$remove_username" --rmapp pleroma
|
261
|
263
|
}
|
262
|
264
|
|
|
@@ -264,6 +266,8 @@ function add_user_pleroma {
|
264
|
266
|
new_username="$1"
|
265
|
267
|
new_user_password="$2"
|
266
|
268
|
|
|
269
|
+ cd $PLEROMA_DIR || exit 348346
|
|
270
|
+ mix register_user "$new_username" "$new_username" "$new_username@$HOSTNAME" $"Your bio goes here" "$new_user_password"
|
267
|
271
|
"${PROJECT_NAME}-pass" -u "$new_username" -a pleroma -p "$new_user_password"
|
268
|
272
|
|
269
|
273
|
echo '0'
|
|
@@ -1236,6 +1240,9 @@ function install_pleroma {
|
1236
|
1240
|
systemctl enable pleroma
|
1237
|
1241
|
systemctl start pleroma
|
1238
|
1242
|
|
|
1243
|
+ cd $PLEROMA_DIR || exit 1935638
|
|
1244
|
+ mix register_user "$MY_USERNAME" "$MY_USERNAME" "$MY_EMAIL_ADDRESS" $"Your bio goes here" "$PLEROMA_ADMIN_PASSWORD"
|
|
1245
|
+
|
1239
|
1246
|
APP_INSTALLED=1
|
1240
|
1247
|
}
|
1241
|
1248
|
|