diff options
| author | Татьяна Фарбер <alexandr@asustem.ru> | 2026-10-21 16:44:54 +0400 |
|---|---|---|
| committer | Татьяна Фарбер <alexandr@asustem.ru> | 2026-10-21 16:44:54 +0400 |
| commit | a698b2adea49210ef6d09acc807f8244d9ea5bde (patch) | |
| tree | bfa5ca6f4153006084f60d5aa726ee75284e5fc6 /git-create | |
| parent | c306da2de7e06157abefe1c87d8bd15fa3708f17 (diff) | |
Diffstat (limited to 'git-create')
| -rw-r--r-- | git-create | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -25,10 +25,14 @@ if [ $? -eq 0 ]; then # Если репозиторий публичный, настраиваем параметры для cgit на сервере if [ "$TYPE" == "public" ]; then ssh ${SERVER} "touch ${REMOTE_PATH}/git-daemon-export-ok" + + # Если описание введено, пишем его СТРОГО в файл description if [ ! -z "$DESC" ]; then - # Прописываем описание напрямую в серверный git config - ssh ${SERVER} "git --git-dir=${REMOTE_PATH} config gitweb.description \"$DESC\"" + ssh ${SERVER} "echo \"$DESC\" > ${REMOTE_PATH}/description" fi + + # На всякий случай выставляем права для www-data прямо из скрипта + ssh ${SERVER} "chown -R git:www-data ${REMOTE_PATH} && chmod -R 750 ${REMOTE_PATH}" fi # Привязка локальной папки |
