Open Sogl opened 2 years ago
on my own servers, with my own scripts, I actually just install libarchive-tools
which contains bsdtar
and use the bsdtar as you outlined:
bsdtar --strip-components=1 -xvf grav-admin.zip
I have no clue what you can do if you can't install other packages.. I think you might me forced to unzip to a tmp folder and then copy all files. If you use this syntax below (notice the .
) you will not have to move regular files and hidden files separately:
cp -r /tmp/grav-admin/. /home/<user>/web
I have no clue what you can do if you can't install other packages
Shared hosting is enough for my project now. If I exceed the load limit, I will move to a VPS.
Is there a chance to get Grav in the tar.gz
archive?
I use Deployer php tool for Grav deploy. My task for download zip:
I want to get rid of moving files command. This problem exists because Grav zip root contains
grav-admin
folder. Butunzip
don't support strip root folder. Many questions about this in SO:--strip-components=1
supports bytar
andbsdtar
:tar
doesn't have support for zip-filesbsdtar
has zip-files support but I can't install any tools on my server (shared hosting)I see two ways:
tar.gz
etc.About the second option the first thing that comes to my mind is the Node.js download page:
Any thoughts?