fix(gotosocial): Fix config paths and CLI flags
- Change db-address from /data/ to /srv/gotosocial/ for direct host mode - Change storage path from /data/ to /srv/gotosocial/ - Fix --config to --config-path to match GoToSocial v0.17 CLI Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
d98bcdf7f4
commit
82f167a8d5
@ -115,10 +115,10 @@ bind-address: "$bind"
|
|||||||
port: $port
|
port: $port
|
||||||
|
|
||||||
db-type: "sqlite"
|
db-type: "sqlite"
|
||||||
db-address: "/data/gotosocial.db"
|
db-address: "/srv/gotosocial/gotosocial.db"
|
||||||
|
|
||||||
storage-backend: "local"
|
storage-backend: "local"
|
||||||
storage-local-base-path: "/data/storage"
|
storage-local-base-path: "/srv/gotosocial/storage"
|
||||||
|
|
||||||
instance-expose-public-timeline: true
|
instance-expose-public-timeline: true
|
||||||
instance-expose-suspended: false
|
instance-expose-suspended: false
|
||||||
@ -377,18 +377,18 @@ cmd_user_create() {
|
|||||||
--username "$username" \
|
--username "$username" \
|
||||||
--email "$email" \
|
--email "$email" \
|
||||||
--password "$password" \
|
--password "$password" \
|
||||||
--config "$DATA_PATH/config.yaml"
|
--config-path "$DATA_PATH/config.yaml"
|
||||||
|
|
||||||
if [ "$admin" = "true" ]; then
|
if [ "$admin" = "true" ]; then
|
||||||
HOME="$DATA_PATH" "$BINARY_PATH" admin account promote \
|
HOME="$DATA_PATH" "$BINARY_PATH" admin account promote \
|
||||||
--username "$username" \
|
--username "$username" \
|
||||||
--config "$DATA_PATH/config.yaml"
|
--config-path "$DATA_PATH/config.yaml"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Confirm the user
|
# Confirm the user
|
||||||
HOME="$DATA_PATH" "$BINARY_PATH" admin account confirm \
|
HOME="$DATA_PATH" "$BINARY_PATH" admin account confirm \
|
||||||
--username "$username" \
|
--username "$username" \
|
||||||
--config "$DATA_PATH/config.yaml" 2>/dev/null || true
|
--config-path "$DATA_PATH/config.yaml" 2>/dev/null || true
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "User created successfully!"
|
echo "User created successfully!"
|
||||||
@ -444,7 +444,7 @@ cmd_user_confirm() {
|
|||||||
|
|
||||||
HOME="$DATA_PATH" "$BINARY_PATH" admin account confirm \
|
HOME="$DATA_PATH" "$BINARY_PATH" admin account confirm \
|
||||||
--username "$username" \
|
--username "$username" \
|
||||||
--config "$DATA_PATH/config.yaml"
|
--config-path "$DATA_PATH/config.yaml"
|
||||||
|
|
||||||
log_info "User $username confirmed"
|
log_info "User $username confirmed"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user