ledzepp94

Automatic git bare repo

2 posts in this topic

Hey all,

 

New to Froxlor but so far I like what I see. So I cloned the repo and made some minor changes to fit what I think would be a more universal need. Basically whenever you create a new user there is a a new git bare repo created in /var/customers/repos/[username].git. It also creates a post-receive hook that checkouts the revision to the working tree (users web root) and chowns it all to www-data. If anyone thinks this may be valuable or interesting let me know and I'll create a patch or however it should be managed.

 

Thanks!

Share this post


Link to post
Share on other sites

Why automatically? Why not stick to the way we handle resources and provide a possibility to let the admin assign an amount of repos and the customer creates them from within the panel like a mysql-db or a ftp-user?

 

Also, it's very specific (had a patch for svn-repos-for-customers years ago never meeged it as too few people would actually need it).

 

But generally a nice idea

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Similar Content

    • By mircsicz
      Hallo zusammen,
       
      am Montag hab ich Froxlor von 0.9.32 auf ne GIT Installation umgestellt, also 0.9.33dev3. Mein Server ist ein Wheezy und als Webserver nutze ich Nginx v1.2.1
       
      Seitdem hab ich ein paar Probleme, zum einen liefert Contao wei?e inPage iFrame popups, EmonCMS stellt keine Graphen dar und PHPmyadmin bleibt nach der Anmeldung komplett wei?...
       
      Aber das wichtigste ist der 502 nach "service php5-fpm restart", der momentane Kompromiss ist ein "chmod 666 /var/run/nginx/*"
       
       
      Das log einer Domain sieht wie folgt aus:
      2014/12/17 08:23:29 [crit] 23825#0: *18878 connect() to unix:/var/run/nginx/CLIENT-xxx.de-php-fpm.socket failed (13: Permission denied) while connecting to upstream, client: 176.198.171.171, server: xxx.de, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/nginx/CLIENT-xxx.de-php-fpm.socket:", host: "www.xxx.de" hier die /etc/php5/fpm/php-fpm.conf:
      root@websrv:~# grep -v '^;' /etc/php5/fpm/php-fpm.conf include=/etc/php5-fpm.d/*.conf include=/etc/php5/fpm/pool.d/*.conf [global] pid = /var/run/php5-fpm.pid error_log = /var/log/php5-fpm.log NSS hab ich gem?? dieser Doku installiert. Das tut auch wie erwartet:
      root@websrv01:/etc/nginx# ll /var/run/nginx/CLIENT-xxx.de-php-fpm.socket srw-rw-rw- 1 CLIENT CLIENT 0 Dez 17 08:22 /var/run/nginx/CLIENT-xxx.de-php-fpm.socket root@websrv01:/etc/nginx# ll /var/customers/webs/|grep CLIENT drwxr-xr-x 6 CLIENT CLIENT 4,0K Dez 14 11:59 CLIENT Ich bezweifle zwar das diese config's urs?chlich sein k?nnen, aber der Vollst?ndigkeit halber: /etc/php5-fpm.d/xxx.de.conf und noch /etc/nginx/sites-enabled/22_froxlor_normal_vhost_xxx.de.conf
       
      Danke vorab...
    • By lucid
      Hi,
       
      I recently installed Froxlor from the debian package successfully but then decided to install it from git on another system which caused the following problem:
       
      After filling out the install script I see the login prompt but it already says then only an admin is allowed to log in which I think was different when I installed from the debian package. Anyway I am the not allowed to log in even though I am using the admin account and there are no other accounts yet obviously.
       
      The error I get is not a "wrong password" error but I just end up back on the login prompt again as any normal user without admin previliges in this case because the update process is not complete.
       
      This problem occurs with the default version on git
       
      Should be easy to reproduce I tried 3 times before giving up and using the debian package again.
       
      Oh, the installation attempt was on a freshly installed Debian Wheezy 64bit system...
       
      Best regards
      Oliver
    • By zapp
      Hi,
       
      die Sache ist eigentlich relative simpel (dachte ich), folgende Ausgangslage:
       
      Ich m?chte per php-script von einem git-repo automatisiert pullen. Das script wird von einem Hook im repo aufgerufen jedes mal wenn jemand in eine bestimmte branch pushed. Soweit so simpel, nur der User der das php ausf?hrt (bei froxlor ein eigener User pro account) braucht daf?r einen ssh Schl?ssel.
       
      Jetzt die Millionen Dollar Frage: Wie lege ich f?r so einen User einen ssh key an? Irgendwelche Konstrukte mit "su - user" etc. haben nichts gebracht. Da passiert einfach gar nichts. 
       
      LG
       
      Florian