-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
7 changed files
with
116 additions
and
3 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
usersec/migrations/0018_hpcuser_home_directory_hpcuser_login_shell_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Generated by Django 4.2.10 on 2024-02-14 15:47 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("usersec", "0017_remove_hpcuser_uid_remove_hpcuserversion_uid"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="hpcuser", | ||
name="home_directory", | ||
field=models.CharField( | ||
default="/data/cephfs-1/home/users/{user.username}", | ||
help_text="Path to the user home directory on the cluster", | ||
max_length=64, | ||
), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="hpcuser", | ||
name="login_shell", | ||
field=models.CharField( | ||
choices=[ | ||
("/usr/bin/bash", "/usr/bin/bash"), | ||
("/usr/bin/fish", "/usr/bin/fish"), | ||
("/usr/bin/zsh", "/usr/bin/zsh"), | ||
("/usr/bin/sh", "/usr/bin/sh"), | ||
], | ||
default="/usr/bin/bash", | ||
help_text="Login shell of the user on the cluster", | ||
max_length=32, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="hpcuserversion", | ||
name="home_directory", | ||
field=models.CharField( | ||
default="/data/cephfs-1/home/users/{user.username}", | ||
help_text="Path to the user home directory on the cluster", | ||
max_length=64, | ||
), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="hpcuserversion", | ||
name="login_shell", | ||
field=models.CharField( | ||
choices=[ | ||
("/usr/bin/bash", "/usr/bin/bash"), | ||
("/usr/bin/fish", "/usr/bin/fish"), | ||
("/usr/bin/zsh", "/usr/bin/zsh"), | ||
("/usr/bin/sh", "/usr/bin/sh"), | ||
], | ||
default="/usr/bin/bash", | ||
help_text="Login shell of the user on the cluster", | ||
max_length=32, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters